ISUNIT

Purpose:

Returns 1 if string is a recognized engineering unit, else 0.

Syntax:

ISUNIT("unit")

"unit"

-

A string, the unit to test.

Returns:

An integer, 1 if str is a unit, else 0.

Example:

a = isunit("Volts")

b = isunit("xxx")

 

a == 1

b == 0

Remarks:

The recognizable unit list can change if units were defined with the SETHUNITS, SETVUNITS or SETZUNITS function.

See Also:

SETHUNITS

SETVUNITS