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

学习 时间:2026-03-30 15:55:07 阅读:9068
sqrt(abs(-100)*sqr(round(4.12))) 为什么结果还有小数点(pascal)

最佳回答

称心的冰淇淋

虚拟的煎蛋

2026-03-30 15:55:07

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-03-30 15:55:07

    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.改为同义句.