Nevron Open Vision Documentation
Measure Functions

 

Syntax Description Example
GETUNIT(var) Safely gets a 1[unit] measure out of measure or number variant. Returns empty for all other variants.

GETUNIT(12.4[mm])
Returns: 1 [millimeter]

GETUNIT(12.4)
Returns: 1

GETUNIT("hello")
Returns: EMPTY()
STRIPUNIT(var[,bConvertToBase]) Safely strips the unit out of measure variants and does nothing with other variants.
If bConvertToBase is true, the returned value is converted to the dimension base unit of measure.
By default bConvertToBase is false.

STRIPUNIT(10[mm])
Returns: 10

STRIPUNIT(10[mm], true)
Returns: 0.01

Send Feedback