Print Page as PDF
Measurement Functions ICR (3175)

Measurement Functions    ICR (3175)

Name Value
NUMBER 3175
IA # 3175
DATE CREATED 2000/08/28
CUSTODIAL PACKAGE KERNEL
CUSTODIAL ISC San Francisco
USAGE Supported
TYPE Routine
ROUTINE XLFMSMT
NAME Measurement Functions
GENERAL DESCRIPTION
This routine contains entry points to allow conversion
between U.S.  (English) and Metric units.
STATUS Withdrawn
ID XLFMSMT
COMPONENT/ENTRY POINT
COMPONENT/ENTRY POINT COMPONENT DESCRIPTION VARIABLES
$$BSA
Usage: $$BSA(ht,wt)

Returns body surface area.
VARIABLES TYPE VARIABLES DESCRIPTION
ht Input
Height in centimeters.
wt Input
Weight in kilograms.
$$LENGTH
Usage: $$LENGTH(val,from,to)

Returns conversion between metric length and U.S. length (either direction).
Returns equivalent value with units.
VARIABLES TYPE VARIABLES DESCRIPTION
val Input
A positive numeric value. from Unit of measure of
val. to Unit of measure to convert val to.
from Input
Valid units in either uppercase or lowercase are:

km = kilometers       mi = miles m = meters            yd = yards cm =
centimeters      ft = feet mm = millimeters      in = inches
to Input
Valid units in either uppercase or lowercase are:

km = kilometers       mi = miles m = meters            yd = yards cm =
centimeters      ft = feet mm = millimeters      in = inches
$$TEMP
Usage: $$TEMP(val,from,to)

Converts metric temperature to U.S. temperature. Returns equivalent value with
units.
VARIABLES TYPE VARIABLES DESCRIPTION
val Input
A positive numeric value. from Unit of measure of
val. to Unit of measure to convert val to.
from Input
Valid units in either uppercase or lowercase are:

f = Fahrenheit      c = Celsius
to Input
Valid units in either uppercase or lowercase are:

f = Fahrenheit      c = Celsius
$$VOLUME
Usage: $$VOLUME(val,from,to)

Converts metric volume to U.S. volume and vice versa. Converts milliliters to
cubic inches or quarts or ounces. Returns equivalent value with units.
VARIABLES TYPE VARIABLES DESCRIPTION
val Input
A positive numeric value. from Unit of measure of
val. to Unit of measure to convert val to.
from Input
Valid units in either uppercase or lowercase are:

kl = kiloliter       cf = cubic feet hl = hectoliter      ci = cubic inch dal
= dekaliter      gal = gallon l = liters           qt = quart dl = deciliter
pt = pint cl = centiliter      c = cup ml = milliliter      oz = ounce
to Input
Valid units in either uppercase or lowercase are:

kl = kiloliter       cf = cubic feet hl = hectoliter      ci = cubic inch dal
= dekaliter      gal = gallon l = liters           qt = quart dl = deciliter
pt = pint cl = centiliter      c = cup ml = milliliter      oz = ounce
$$WEIGHT
Usage: $$WEIGHT(val,from,to)

Returns conversions between metric weights to approximate U.S. weights (in
either direction). Returns equivalent value with units.
VARIABLES TYPE VARIABLES DESCRIPTION
val Input
A positive numeric value. from Unit of measure of
val. to Unit of measure to convert val to.
from Input
Valid units in either uppercase or lowercase are:

t = metric tons      tn = tons kg = kilograms       lb = pounds g = grams
oz = ounces mg = milligram       gr = grain
to Input
Valid units in either uppercase or lowercase are:

t = metric tons      tn = tons kg = kilograms       lb = pounds g = grams
oz = ounces mg = milligram       gr = grain