Skip to main content

four_digits_zero_padded

Function four_digits_zero_padded 

Source
pub(crate) const fn four_digits_zero_padded(
    n: ru16<0, 9_999>,
) -> [&'static str; 2]
Expand description

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