The function bin2dec
Converts binary representations to digital numbers (e.g., 10101011 = 171). Fractions, (e.g., 0.11101) will be evaluated to the number of bits provided. The function will not handle codification of whole numbers with fractional parts. The function dec2bin
Converts decimal representations to binary and can handle whole numbers, fractional, and numbers with both whole and fractional parts.