JRE Version Inconsistency between Math classes
Posted on 2003-03-11
I'm writing a java applet where I need to be able to get perfectly consistent results for any given set of calculations, no matter what version of the JRE is on the client computer. This is mildly problematic thanks to the fact that Sun has renamed the Math class to the StrictMath class, and created a new version of the Math class for later versions of the JRE.
My applet provides consistent results for anyone using a version of java above 1.3.0 (the newer version of the Math class), and consistent results for anyone using a version of java below 1.3.0 (the old version of the Math Class that got renamed to StrictMath); but these two sets of results, while consistent, are different from each other.
Does anyone have any suggestions as to how to solve this? Precision isn't vital to the results, but consistency is.