Function maelstrom_plot::format_number

source ยท
pub fn format_number(number: f64, num_decimals: usize) -> String
Expand description

Helper for formatting a number so that we always show at least a few decimals, unless it is an integer, in which case we never show any decimals.