Skip to main content

format_points

Function format_points 

Source
pub fn format_points(points: f64) -> String
Expand description

A score as the reader sees it: 1247.5 -> "1,247.50".

Rounds to whole hundredths first, rather than trunc/fract, so 9.999 carries into the whole part instead of giving "9.100", and a negative score keeps its sign.