<SCRIPT language=javascript>

<!--  

function test()

{

        document.write(Math.floor(5.80) + "<br>");//取整或下舍入

        document.write(Math.round(5.80) + "<br>");//四舍五入

        document.write(Math.ceil(5.10) + "<br>");//上舍入

        document.write(Math.abs(-5.80) + "<br>");//取绝对值

        document.write(Math.max(55,58) + "<br>");//返回两个值中最大数

        document.write(Math.min(55,58) + "<br>");//返回两个值中最小数

}

-->

</SCRIPT>

<div><script>test();</script></div>

相关文章:

  • 2022-12-23
  • 2021-07-12
  • 2022-12-23
  • 2022-12-23
  • 2022-02-12
  • 2021-07-03
  • 2022-12-23
猜你喜欢
  • 2021-05-17
  • 2022-12-23
  • 2021-06-24
  • 2021-12-05
  • 2022-01-26
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案