pub fn format_non_dec(n: f64, base: Base) -> String
Formats a number in a non-decimal integer base (hex/bin/oct). Rounds to the nearest integer before formatting.