Which code determines the int value data closer to, but not greater than, a double value b?

Options
- Int data = (int) Math.abs(b);
- Int data = (int) Math.ceil(b);
- Int data = (int) Math.floor(b);
- Int data = (int) Math.min(b);


CORRECT ANSWER : Int data = (int) Math.floor(b);

Discussion Board
hello

hi

harsh 09-11-2018 10:53 AM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement