bcd_to_float Function (Macro)

timath.h

float bcd_to_float (bcd x);

Converts BCD to float.

bcd_to_float converts BCD structure x into an ordinary floating point value. In fact, this function returns the same value as the argument, but with different interpretation. This function, in a way, performs typecasting from a bcd type to an ordinary float type.