...
Programs that require consistent results from floating point operations across different JVMs and platforms must use the strictfp
modifier. This modifier requires the JVM and the platform to behave as though all floating point computations were performed using values limited to those representable by a standard Java float
or double
, consequently guaranteeing that the result of the computations will match exactly across all JVMs and platforms.
...