pub fn decimal_to_bcd(value: u64, nibbles: u8) -> Option<u64>Expand description
Encode value as nibbles packed-BCD digits in the low bits of a u64.
Returns None if value needs more than nibbles decimal digits, or if
nibbles exceeds MAX_NIBBLES.