java - Difference between Math.IEEEremainder() and StrictMath.IEEEremainder() -
i found ieeeremainder() @ 2 places in lang package.
java.lang.math.ieeeremainder()java.lang.strictmath.ieeeremainder()
my question both methods same or different?
as spelled out in documentation:
unlike of numeric methods of class
strictmath, implementations of equivalent functions of classmathnot defined return bit-for-bit same results. relaxation permits better-performing implementations strict reproducibility not required.
since x86(-64) architecture uses ieee 754 floating-point, on x86 openjdk implementation, math tends delegate strictmath, , in case, not required specification.
Comments
Post a Comment