Christian Vandendorpe wrote:
> Seems people would rather spend their time complaining
> than programming. [...] back to programming...
For those who are willing and able to change some code to work around
this problem, here is something to try that is probably a little better
than the previously suggested workarounds.
Put something like this in a header file:
#if __MWERKS__ == 0x2201
# define FP_DIV( a, b ) (( b ) / ( a ))
#else
# define FP_DIV( a, b ) (( a ) / ( b ))
#endif
And change your constant division expressions like this:
//float pi = 22.001 / 7.001;
float pi = FP_DIV( 22.001, 7.001 );
This isn't perfect or painless but it does work, and will work with the
upcoming fixed compiler, so you need change your code only once.
-slj-
http://www.oracle.com/ebusiness/crm_mobile.html