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

$$TEMP^XLFMSMT(): Convert Temperature Measurement

Reference Type: Supported, Category: Measurement Functions, Integration Agreement: 3175 & 10143

Description

This 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.

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


VA (Internet) / VA(Intranet) / OI / PD / Site Map / Terms of Use / VA Privacy Policy / Accessibility

Reviewed/Updated: August 26, 2011

If you have questions, need more information, or are having accessibility problems with this website, please contact us by E-Mail: Webmasters, Phone: 510-768-6800, or FAX: 510-768-6850.