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.159 -- Release Build+a612c25bc0e1c87e5766544ec4650d2ebcfddcf4
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