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

学习 时间:2026-09-26 05:10:03 阅读:1828
sqrt(abs(-100)*sqr(round(4.12))) 为什么结果还有小数点(pascal)

最佳回答

美丽的口红

搞怪的时光

2026-09-26 05:10:03

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-09-26 05:10:03

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