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

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -