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.151 -- Release Build+cb63b4525778c53d196bb55bacd9a49fac1f0f07
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