Topic : BCD float sign loss

Forum : 8051

Original Post
Post Information Post
October 6, 2008 - 3:36pm

Hi Support,
i have the same issue like the user "puposet" had. When trying so convert a BCD float value the negative sign is being lost.

signed long slValue;
slValue = (double)-11016 / (double)38.4

Result will be 286 and not -286.

An example code has been sent to . Please send me an update for RC51 V03.03.43 as soon as possible - project needs to be finished this week. I can't move to IEEE float because all other calculations are running on BCD float.

Thanks in advance.

Post Information Post
October 10, 2008 - 2:35pm


Here is a link you can find the library files that have been sent to Sören and that fix this issue.

You need to unzip these files and to place them under c:\ride\lib\