Function burn::train::metric::format_float

pub fn format_float(float: f64, precision: usize) -> String
Expand description

Format a float with the given precision. Will use scientific notation if necessary.