Create a numeric style value with a finite number and its unit.
numberFinite float; defaults to zero.
unitNative unit or unit set; defaults to UNKNOWN.
Mapped Rml::NumericValue::number; writes round to float32.
Native number.
Write the native float32 number.
valueFinite number within float32 range.
Writable one-float view of the actual native number field.
Shared view, independent of wrapper lifetime.
Write the native unit flags.
valueKnown unit or unit set.
Writable one-integer view of the actual native unit field.
Shared view, independent of wrapper lifetime.
Native-owned Rml::NumericValue with mapped number and unit fields.
Remarks
Views retain only this independent native value. They remain usable after wrapper collection and RmlUi shutdown, including in a worker. Native operations reject non-finite numbers and unknown unit bits written directly through the views. Unit sets can be stored and compared; element resolution requires a single applicable unit.