The Java.lang.StrictMath.IEEEremainder() is an inbuilt method of StrictMath class which is used to perform the remainder operation on given two arguments as prescribed by the IEEE 754 standard. The remainder value is mathematically equal to , where rem is the mathematical integer closest to exact mathematical value of the quotient , and when two mathematical integers are equally close to , and n is an even integer. It gives rise to two special results:
- Its sign is same as the sign of the first argument when the remainder is zero.
- It returns NaN when either argument is NaN, or num1 is infinite, or num2 is positive or negative zero.
- The result is same as the num1 when num1 is finite and the num2 is infinite.
public static double IEEEremainder(double num1, double num2)
Parameters: The method accepts two parameters :
- num1: This is of double type which is the dividend.
- num2 This is als of double type which is the divisor.
Return Value: The method returns the remainder when num1 is divided by num2.
Input: num1 = 100.61d num2 = 5.32d Output: -0.47000000000000597
Below programs illustrate the Java.lang.StrictMath.IEEEremainder() method:
Remainder value of 5651.51 & 61.79 = 28.620000000000296
Remainder value is = 70.55
Don’t stop now and take your learning to the next level. Learn all the important concepts of Data Structures and Algorithms with the help of the most trusted course: DSA Self Paced. Become industry ready at a student-friendly price.
- Java Math IEEEremainder() method with Examples
- StrictMath pow() Method in Java
- StrictMath log() Method In Java
- StrictMath tan() Method in Java
- StrictMath exp() Method in Java
- StrictMath sin() Method in Java
- StrictMath multiplyExact() Method in Java
- StrictMath hypot() Method in Java
- StrictMath nextAfter() Method in Java
- StrictMath fma() method in Java with Examples
- StrictMath random() Method in Java
- StrictMath floor() Method in Java
- StrictMath toDegrees() Method in Java
- StrictMath max() Method in Java With Examples
- StrictMath scalb() Method in Java
- StrictMath min() Method in Java with Examples
- StrictMath nextUp() Method in Java
- StrictMath signum() Method in Java
- StrictMath toRadians() Method in Java
- StrictMath tanh() Method in Java
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.