NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
byte bcd2dec ( byte  bcd)
inline

Convert from BCD to decimal Return the decimal equivalent of the binary coded decimal value provided.

Parameters
bcdThe value you want to convert from bcd to decimal.
Returns
The decimal equivalent of the binary coded decimal byte.
Examples:
ex_bcd2dec.nxc.