Keyword: UNITS
The units keyword is used in a type declaration to declare physical types.
A units statement includes—in this order:
(1) the reserved word "units",
(2) the base unit,
(3) optionally, one or more secondary units, and
(4) the reserved words "end units".
Example
type time is range -2_147_483_647 to 2_147_483_647
units
fs;
ps = 1000 fs;
ns = 1000 ps;
us = 1000 ns;
ms = 1000 us;
sec = 1000 ms;
min = 60 sec;
hr = 60 min;
end units;
LRM
3.1
See also