MCPcopy Create free account
hub / github.com/PerroEngine/Perro / fmt_f32

Function fmt_f32

perro_source/runtime_project/perro_scene/src/scene_doc.rs:762–768  ·  view source on GitHub ↗
(value: f32)

Source from the content-addressed store, hash-verified

760 if value.starts_with('@') {
761 out.push('@');
762 }
763 out.push_str(value);
764}
765
766fn fmt_f32(value: f32) -> String {
767 if value.fract() == 0.0 {
768 format!("{value:.1}")
769 } else {
770 value.to_string()
771 }

Callers 3

write_valueMethod · 0.70
write_value_inlineMethod · 0.70
write_value_plainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected