|
void ftoa(float n, unsigned char decimals, char *str)
converts the floating point number n to characters in string str.
The number is represented with a specified number of decimals.
Получите строку, там преобразовать ее в BCD - уже просто.
Это взято из хелпа для CodeVision
E-mail: info@telesys.ru