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);
Write your comments