Which code determines&#819

发布时间:2021-04-06 22:35:39

题目类型:[单选] Which code determines the int value foo closest to, but not greater than, a double value bar?()  
A、 Int foo = (int) Math.max(bar);
B、 Int foo = (int) Math.min(bar);
C、 Int foo = (int) Math.abs(bar);
D、 Int foo = (int) Math.ceil(bar);
E、 Int foo = (int) Math.floor(bar);  F、 Int foo = (int) Math.round(bar);

网友回答

参考答案: E
试题难度:★★☆
参考解析:
以上问题属网友观点,不代表本站立场,仅供参考!