Topic : BCD float sign loss

Forum : 8051

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

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.
Sören

Replies
Post Information Post
+1
0
-1
October 10, 2008 - 2:35pm
Guest

Hi

Here is a link you can find the library files that have been sent to Sören and that fix this issue.
ftp://www.raisonance.com/pub/forum/8051/rc51FB.zip

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

Matloub