RE: Math crashes with translated programs (Rob?)
- Posted by Andy Serpa <renegade at earthling.net> Jun 09, 2002
- 446 views
a.tammer at hetnet.nl wrote: > second case you ask for an impossibilty. > 0.02 pwr -300 goes below lowest FP-possible > a@t > > > That's not the point. Both the interpreter & the translated programs output 0 in that case, which is fine by me. However, if you use something like -300.34, then the translated program gives an overflow, but the interpreter still outputs 0. An overflow is fine from the interpreter too, as long as I can predict it and guard against it with a safe_power() function. It is the inconsistacy that bothers me. But this one isn't so bad because it can be easily avoided. The main example I gave, which doesn't overflow (& shouldn't), but outright crashes for no apparent reason, is the real problem.