Gemstone Common Library
Show/Hide TOC

# TemperatureConvertFrom Method

Converts the value in the specified sourceUnit to a new Temperature in Kelvin.

## Definition

Namespace: Gemstone.Units
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.177 -- Release Build+17e3a8c30c12a6a5a57ad4af156d7b83be281c33
C#
View Source Request Example

    public static Temperature ConvertFrom(
    	double value,
    	TemperatureUnit sourceUnit
    )

VB
View Source Request Example

    Public Shared Function ConvertFrom (
    	value As Double,
    	sourceUnit As TemperatureUnit
    ) As Temperature

C++
View Source Request Example

    public:
    static Temperature ConvertFrom(
    	double value,
    	TemperatureUnit sourceUnit
    )

JavaScript
View Source Request Example

    Gemstone.Units.Temperature.ConvertFrom = function(value, sourceUnit);

#### Parameters

value Double
  Source value.
sourceUnit TemperatureUnit
  Source value units.

#### Return Value

Temperature
New Temperature from the specified value in sourceUnit.

## See Also

#### Reference

Temperature Structure
Gemstone.Units Namespace