首页 试题广场 > 试题详情
单选题

What is displayed when the following is executed; double d1=-0.5;System.out.println("Ceil d1="+Math.ceil(d1));System.out.println("floor d1="+Math.floor(d1));

  • A.Ceil d1=-0.0floor d1=-1.0
  • B.Ceil d1=0.0floor d1=-1.0
  • C.Ceil d1=-0.0floor d1=-0.0
  • D.Ceil d1=0.0floor d1=0.0
提交并查看答案
下一题 上一题
Ke星伙伴们的回答/ 1个回答
关闭
关闭
QQ
交流群
邀请
好友
App
下载
意见
反馈
返回
顶部