Which of the following will produce an answer that is closest in value to a double, d, while not being greater than d?
A.(int)Math.min(d);
B.(int)Math.max(d);
C.(int)Math.abs(d);
D.(int)Math.floor(d);
Answer:D
Which of the following will produce an answer that is closest in value to a double, d, while not being greater than d?
A.(int)Math.min(d); B.(int)Math.max(d); C.(int)Math.abs(d); D.(int)Math.floor(d);