Skip to main content

pt_to_f32

Function pt_to_f32 

Source
pub(crate) fn pt_to_f32(v: f64) -> f32
Expand description

Narrow an f64 measurement (always a small positive page-pt or dimensionless leading multiplier) to f32. Values arriving here are bounded above by the largest ISO-216 size (~4000pt), so the cast cannot overflow and any lost precision sits well below a typographic point.