Which of the following will produce an answer that is close in value to a double ' d while not being greater than d?
A
9int0 Math.min
B
(int) Math. Max (d)
C
(int) Math abs (d)
D
(int)math .floor( d)
Correct Answer: (int)math .floor( d)
The casting to an int is a smokescreen. Option D is correct, it is syntathecially correct and will consistently return a value less than d.