sqrt(abs(-100)*sqr(round(4.12))) 为什么结果还有小数点(pascal)

学习 时间:2026-08-10 18:22:33 阅读:2401
sqrt(abs(-100)*sqr(round(4.12))) 为什么结果还有小数点(pascal)

最佳回答

老迟到的音响

简单的糖豆

2026-08-10 18:22:33

ound(4。12)=4sqr(round(4。12))=16abs(-100)=100abs(-100)*sqr(round(4。12))=1600sqrt(1600)=40。0sqrt的值参x即使是整数,返回值也是实数。如果要取整,要用函数trunc。http://baike。baidu。com/view/1215583。htm

最新回答共有2条回答

  • 甜甜的奇迹
    回复
    2026-08-10 18:22:33

    ound(4。12)=4sqr(round(4。12))=16abs(-100)=100abs(-100)*sqr(round(4。12))=1600sqrt(1600)=40。0sqrt的值参x即使是整数,返回值也是实数。如果要取整,要用函数trunc。http://baike。baidu。com/view/1215583。htm

上一篇 数学题两道(关于线段的性质和角)

下一篇 The town has changed a lot over the years.改为同义句.