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.173 -- Release Build+298e1c238b074757f82f41812034645402a162ed
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