Skip to main content

four_digits_space_padded

Function four_digits_space_padded 

Source
pub(crate) const fn four_digits_space_padded(
    n: ru16<0, 9_999>,
) -> [&'static str; 2]
Available on crate feature formatting only.
Expand description

Obtain two strings of two ASCII digits each representing n. The first string is the most significant. Leading spaces are included if the number has fewer than 4 digits.