Math(數學對象)__JavaScript編程筆記

來源:互聯網
上載者:User

Math 算術函數和常量
Math.abs( ) 計算絕對值
Math.acos( ) 計算反餘弦值
Math.asin( ) 計算反正弦值
Math.atan( ) 計算反正切值
Math.atan2( ) 計算從x軸到一個點之間的角度
Math.ceil( ) 對一個數上舍入
Math.cos( ) 計算餘弦值
Math.E 算術常量e
Math.exp( ) 計算ex
Math.floor( ) 對一個數下舍入
Math.LN10 算術常loge10
Math.LN2 算術常量loge2
Math.log( ) 計算一個數的自然對數
Math.LOG10E 算術常量log10e
Math.LOG2E 算術常量log2e
Math.max( ) 返回最大的參數
Math.min( ) 返回最小的參數
Math.PI 算術常量PI
Math.pow( ) 計算xy
Math.random( ) 返回一個偽隨機數
Math.round( ) 舍入到最接近的整數
Math.sin( ) 計算正弦值
Math.sqrt( ) 計算平方根
Math.SQRT1_2 算術常量 1/
Math.SQRT2 算術常量
Math.tan( ) 計算正切值

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.