[Bug c/25498] atof conversion error

2005-12-19 Thread pinskia at gcc dot gnu dot org
--- Comment #5 from pinskia at gcc dot gnu dot org 2005-12-20 00:49 --- Try the following program: #include int main(void) { float currConvf = 60342935.0; printf("%f\n", currConvf); } And you will see that you get 60342936.0. The number of bits needed to represent 60342935 is one

[Bug c/25498] atof conversion error

2005-12-19 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2005-12-20 00:40 --- oh, one more thing, GCC does not control atof at all. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25498

[Bug c/25498] atof conversion error

2005-12-19 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2005-12-20 00:40 --- 60342935.0 cannot be represented exactly in a float so this is still exacted. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25498

[Bug c/25498] atof conversion error

2005-12-19 Thread mike dot c at u-s-merchants dot com
ecember 19, 2005 3:46 PM To: [EMAIL PROTECTED] Subject: [Bug c/25498] atof conversion error --- Comment #1 from pinskia at gcc dot gnu dot org 2005-12-19 23:45 --- This is called float not having enough precession. This is not a bug. Please read what floating point is. The full testcase

[Bug c/25498] atof conversion error

2005-12-19 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2005-12-19 23:45 --- This is called float not having enough precession. This is not a bug. Please read what floating point is. The full testcase looks like: #include #include #include int main(void) { char currConv[9];