Skip to main content

format_number

Function format_number 

Source
pub fn format_number(n: u64) -> String
Expand description

Format a number with thousand separators.

ยงExample

use sqlmodel_console::renderables::table_info::format_number;

assert_eq!(format_number(1234567), "1,234,567");
assert_eq!(format_number(999), "999");