byte-num 0.1.3

Crate for converting numbers to bytes, and bytes to numbers in base 10!
Documentation
/// The value for converting from ascii to a digit
pub(crate) const ASCII_TO_INT_FACTOR: u8 = 48;

/// Constant table of powers of 10 for u8
pub(crate) const POW10_U8: [u8; 3] = [100, 10, 1];

/// Constant table of powers of 10 for u16
pub(crate) const POW10_U16: [u16; 5] = [10_000, 1_000, 100, 10, 1];

/// Constant table of powers of 10 for u32
pub(crate) const POW10_U32: [u32; 10] = [
    1_000_000_000,
    100_000_000,
    10_000_000,
    1_000_000,
    100_000,
    10_000,
    1_000,
    100,
    10,
    1,
];

/// Constant table of powers of 10 for u64
pub(crate) const POW10_U64: [u64; 20] = [
    10_000_000_000_000_000_000,
    1_000_000_000_000_000_000,
    100_000_000_000_000_000,
    10_000_000_000_000_000,
    1_000_000_000_000_000,
    100_000_000_000_000,
    10_000_000_000_000,
    1_000_000_000_000,
    100_000_000_000,
    10_000_000_000,
    1_000_000_000,
    100_000_000,
    10_000_000,
    1_000_000,
    100_000,
    10_000,
    1_000,
    100,
    10,
    1,
];

#[cfg(target_pointer_width = "32")]
pub(crate) const POW10_USIZE: [usize; 10] = [
    1_000_000_000,
    100_000_000,
    10_000_000,
    1_000_000,
    100_000,
    10_000,
    1_000,
    100,
    10,
    1,
];

#[cfg(target_pointer_width = "64")]
pub(crate) const POW10_USIZE: [usize; 20] = [
    10_000_000_000_000_000_000,
    1_000_000_000_000_000_000,
    100_000_000_000_000_000,
    10_000_000_000_000_000,
    1_000_000_000_000_000,
    100_000_000_000_000,
    10_000_000_000_000,
    1_000_000_000_000,
    100_000_000_000,
    10_000_000_000,
    1_000_000_000,
    100_000_000,
    10_000_000,
    1_000_000,
    100_000,
    10_000,
    1_000,
    100,
    10,
    1,
];