java - Difference between Math.IEEEremainder() and StrictMath.IEEEremainder() -


i found ieeeremainder() @ 2 places in lang package.

  1. java.lang.math.ieeeremainder()
  2. 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 class math not 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

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -