Skip to main content

from_bcd_byte

Function from_bcd_byte 

Source
pub fn from_bcd_byte(byte: u8) -> Option<u8>
Expand description

Decode a packed-BCD byte (two nibbles) to 0..=99.

Returns None if either nibble is greater than 9.