Flash cards
Review the key moves
1/4
Core idea
What is the main idea behind Java Math IEEEremainder() Method?
Lesson checks
Practice each idea before moving on
Short Mimo-style checks built from this lesson's code, terms, and sequence.
1Quick choice
Which statement best captures the main point of this lesson?
2Fill blank
Complete the missing token from the example code.
___.out.println(Math.IEEEremainder(11, 3));3Order
Put the learning moves in the order that makes the concept easiest to apply.
The IEEEremainder() method computes the remainder operation on two numbers as prescribed by the IEEE 754 standard.
Definition and Usage
Java Math IEEEremainder() Method
❮ Math Methods
Example
System.out.println(Math.IEEEremainder(11, 3));
System.out.println(Math.IEEEremainder(16, 4));
System.out.println(Math.IEEEremainder(31, 2.5));Definition and Usage
The IEEEremainder() method computes the remainder operation on two numbers as prescribed by the IEEE 754 standard.
The return value of this method for two numbers a and b is equal to a - (b * Math.rint(a/b)) .
Syntax
public static double IEEEremainder(double
dividend , double
divisor )Parameter Values
| Parameter | Description |
|---|---|
| dividend | Required. The dividend of the remainder operation. |
| divisor | Required. The divisor of the remainder operation. |
Technical Details
| Returns: | A double value representing the result of the remainder operation between two numbers. |
|---|---|
| Java version: | Any |