foundry_debugger::tui::draw

Function decimal_digits

Source
fn decimal_digits(n: usize) -> usize
Expand description

Returns the number of decimal digits in the given number.

This is the same as n.to_string().len().