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.164 -- Release Build+6bbd7ea5ff4ad8917f12d693358b77d083ee278e
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