JS math 對象方法

來源:互聯網
上載者:User

標籤:

abs    返回數位絕對值。  Math.abs(number) acos   返回數的反餘弦值。  Math.acos(number)asin   返回數位反正弦值。 Math.asin(number) atan   返回數位反正切值。  Math.atan(number)atan2  返回由 X 軸到 (y,x) 點的角度(以弧度為單位)。 Math.atan2(y, x)ceil   返回大於等於其數字參數的最小整數。  Math.ceil(number)cos    返回數的餘弦值。   Math.cos(number)exp  返回 e(自然對數的底)的冪。  Math.exp(number)floor    返回小於等於其數值參數的最大整數。  Math.floor(number)log     返回數位自然對數。  Math.log(number)max   返回給出的零個或多個數值運算式中較大者。 Math.max(num1,num2,num3,num4);min    返回給出的零個或多個數值運算式中較小的值。 Math.min(num1,num2,num3,num4);pow    返回底運算式的指定次冪。  Math.pow(base, exponent); base--運算式低值    exponent--運算式的指數值random    返回介於 0 和 1 之間的偽隨機數。  Math.random( )round   返回與給出的數值運算式最接近的整數   Math.round(number);sqrt    返回數位平方根。   Math.sqrt(number)sin    返回數位正弦值。 Math.sin(number) tan     返回數位正切值。   Math.tan(number)

 

JS math 對象方法

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.