ES6 - Math-SQRT1_2 屬性



1/2 的平方根;亦等於 1 除以 2 的平方根,約為 0.707

語法

Math.SQRT1_2 

示例

console.log(Math.SQRT1_2)  // the square root of 1/2: ~0.707           

輸出

0.7071067811865476            
廣告
© . All rights reserved.