zoukankan      html  css  js  c++  java
  • math对象

    math对象:

        math abs(x)   返回x的绝对值

        math ceil(x)   返回x的上舍入

        math.floor(x)  返回x的下舍入

        math.max(x)   返回最大值        (必须是数字)

        math.min()   返回最小值

        math.random()    返回0-1之间的随机数

        math.round()    返回四舍五入的值

        math.PI    返回π

        math.sqrt()     返回x的平方根

        math.sin(x)     返回的是x的正弦值(对边比斜边)

        math.cos(x)     返回的是x的余弦值(邻边比斜边)

        math.tan(x)     返回的是x的正切值(对边比邻边)

        math.asin(x)    返回的是x的反正弦值(对边比斜边)

        math.acos(x)     返回的是x的反余弦值(邻边比斜边)

        math.atan(x)     返回的是x的反正切值(对边比邻边)

  • 相关阅读:
    JavaScript.how-to-debug-javascript
    iOS.mach_absolute_time
    Startup.国外新锐公司及其技术Blog
    Android.FamousBlogs
    iOS.PrototypeTools
    Android.API.Context.getFilesDir()
    Android.Tools.Ant
    Tools.OnlineAPIs
    Java.Class
    Android.StructureOfAndroidSourceCodeRootTree
  • 原文地址:https://www.cnblogs.com/wwwzhaocom/p/10154097.html
Copyright © 2011-2022 走看看