in reply to Re: [Win32, C, and way OT] C floats, doubles, and their equivalence
in thread [Win32, C, and way OT] C floats, doubles, and their equivalence
then I expect x == y to be true - and every compiler that I have at my disposal supports that expectation.float x = 123.1; float y = 123.1;
then I expect x == (float)y to be true - and every compiler that I have at my disposal (except MSVC++ 7.0) supports that expectation.float x = 123.1; double y = 123.1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: [Win32, C, and way OT] C floats, doubles, and their equivalence
by ig (Vicar) on Jul 18, 2009 at 17:21 UTC | |
|
Re^3: [Win32, C, and way OT] C floats, doubles, and their equivalence
by ELISHEVA (Prior) on Jul 18, 2009 at 19:03 UTC | |
by syphilis (Archbishop) on Jul 19, 2009 at 01:34 UTC | |
by repellent (Priest) on Jul 20, 2009 at 23:27 UTC | |
by syphilis (Archbishop) on Jul 21, 2009 at 02:12 UTC | |
by roboticus (Chancellor) on Jul 19, 2009 at 10:24 UTC |