Skip to main content

reduce_string

Function reduce_string 

Source
pub fn reduce_string(s: &str) -> String
Expand description

Normalises a decimal string by stripping trailing fractional zeros (mirrors Precise.reduce() + toString()). Falls back to the input on overflow / parse failure.