Kernel 8.0 APIs Banner
Office of Information and Technology (OIT) Banner
[skip navigation]

$$TEMP^XLFMSMT(): Convert Temperature Measurement

Reference Type: Supported, Category: Measurement Functions, ICR#: 3175 & 10143

Description

The $$TEMP^XLFMSMT extrinsic function converts U.S. temperature to Metric temperature and vice versa. It returns the equivalent value with units.

Format

  $$TEMP^XLFMSMT(value,from,to)

Input Parameters

value:

(required) A positive numeric value.

from:

(required) Unit of measure of the value input parameter (see table under the to input parameter).

to:

(required) Unit of measure to which the value input parameter is converted (see table below):

Valid units in either uppercase or lowercase are:

Metric US
C—Celsius F—Fahrenheit

Output

returns:

Returns the temperature measurement.

Examples

Example 1

Converting Fahrenheit to Celsius:

>S X=$$TEMP^XLFMSMT(72,"F","C")

>W X
22.222 C

Example 2

Converting Celsius to Fahrenheit:

>S X=$$TEMP^XLFMSMT(0,"c","f")

>W X
32 F