Keil Logo Arm Logo

Discussion Forum

Floating point bug !

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Details Message
Read-Only
Author
Yasar ORHON
Posted
26-Apr-2003 16:40 GMT
Toolset
C51
New! Floating point bug !
float f;
unsigned long l;

f=10000 * 9999.99; // result f=9.99999e+007
l=f; // result l=99999904 !!
Read-Only
Author
Yasar ORHON
Posted
26-Apr-2003 23:06 GMT
Toolset
C51
New! RE: Floating point bug !
Any reply?
This is a Bug or not?

(Version 7.05)
Read-Only
Author
Andrew Neil
Posted
27-Apr-2003 01:01 GMT
Toolset
C51
New! RE: Floating point bug !
"Any reply?"

If you have support (ie, if you paid for the product), you should contact Keil support direct.

To me, it looks like just a rounding error - which is inherent in any floating-point implementation!

Do your results fall within the error limits specified in the Manual?
Read-Only
Author
Keil Support Intl.
Posted
28-Apr-2003 07:20 GMT
Toolset
C51
New! RE: Floating point bug !
Please see the description under:
http://www.keil.com/support/docs/2414.htm

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Keil logo

Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.