Skip to main content

display_float_like_logos

Function display_float_like_logos 

Source
pub fn display_float_like_logos(f: f64) -> String
Expand description

Format an f64 exactly as a Show of a Float would — i.e. byte-identical to the tree-walker / VM (RuntimeValue::to_display_string). The direct-WASM host’s print_f64 sink uses this so a Show of a float matches every other engine. Delegating to the real formatter (rather than re-deriving it) makes drift impossible.