Skip to main content

format_number

Function format_number 

Source
pub fn format_number(value: f64, format_code: &str) -> String
Expand description

Format a numeric value using the given format code string.

Returns the formatted display text. For format codes that contain date/time tokens, the value is interpreted as an Excel serial number.