Skip to main content

format_non_dec

Function format_non_dec 

Source
pub fn format_non_dec(n: f64, base: Base) -> String
Expand description

Formats a number in a non-decimal integer base (hex/bin/oct). Rounds to the nearest integer before formatting.