type

Number

Number : Scalar

Number is an integer or floating point value with an optional unit of measurement. Unit symbols are defined by Unit enum.

45             // unitless integer
-23.45         // unitless floating point
5.4e-7         // unitless exponent format
45°F           // integer with unit
-23.45m²       // floating point with unit
10_000         // underbar is allowed as a separator
5.4E+8kW       // exponent format with unit
NaN            // not a number - unit is invalid
INF            // positive infinity - unit is invalid
-INF           // negative infinity - unit is invalid

subtypes Duration  ​Float  ​Int meta pattern(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?[a-zA-Z%_/$\... sealed✓ val0 Haxall 4.0.7 ∙ 27-Oct-2026 09:10 EDT