2010-04-14 81 views
1

Actionscript是否有一個函數,告訴我輸入是什麼數字的平方根。例如:逆平方根:在數學庫或如何計算它

4  //output 2, because 4 is the square root of 2 
16 //output 4, because 16 is the square root of 4 
+4

UMM,4是2 2的平方4. – dnagirl 2010-04-14 17:09:02

+1

@dnagirl的平方根,哈哈哈,好,我感到稍微笨現在**臉紅** – danke 2010-04-14 17:17:51

回答

1
squareRoot=Math.sqrt(value);