Skip to main content

UNITS

Static UNITS 

Source
pub static UNITS: Lazy<FxHashMap<String, f64>>
Expand description

Used in conversion to scaled points.

These are the float sp-per-unit ratios, kept for display / scaling consumers (pgf/graphics/hyperref divide by them). For dimension construction use convert_unit_ratio + numeric_ops::fixpoint_unit instead — exact integer arithmetic, bit-faithful to TeX (issue #127). Each value here equals 65536·num/den of the matching convert_unit_ratio entry.