Skip to main content

MetricPrefixes

Short summary

This is an enumeration for metric prefixes. The value after an enum entry corresponds to the power of ten of the respective prefix.

Underlying type: INT

Components

NameValueComment
QUECTO- 30-
RONTO- 27-
YOCTO- 24-
ZEPTO- 21-
ATTO- 18-
FEMTO- 15-
PICO- 12-
NANO- 9-
MICRO- 6-
MILLI- 3-
CENTI- 2-
DECI- 1-
NONE0-
DEKA1-
HECTO2-
KILO3-
MEGA6-
GIGA9-
TERA12-
PETA15-
EXA18-
ZETTA21-
YOTTA24-
RONNA27-
QUETTA30-

Code

Declaration

{attribute 'qualified_only'}
{attribute 'to_string'}
TYPE MetricPrefixes :
(
QUECTO := -30,
RONTO := -27 ,
YOCTO := -24 ,
ZEPTO := -21 ,
ATTO := -18 ,
FEMTO := -15 ,
PICO := -12 ,
NANO := -9 ,
MICRO := -6 ,
MILLI := -3 ,
CENTI := -2 ,
DECI := -1 ,
NONE := 0 ,
DEKA := 1 ,
HECTO := 2 ,
KILO := 3 ,
MEGA := 6 ,
GIGA := 9 ,
TERA := 12 ,
PETA := 15 ,
EXA := 18 ,
ZETTA := 21 ,
YOTTA := 24 ,
RONNA := 27 ,
QUETTA := 30
) INT ;
END_TYPE