Function format_uint_exp

Source
pub fn format_uint_exp(num: U256) -> String
Expand description

Formats a U256 number to string, adding an exponential notation hint if it is larger than 10_000, with a precision of 4 figures, and trimming the trailing zeros.