2017-02-21 99 views
0

sqrt(0.0000000185);返回0.00013601470。這是好的Php sqrt函數返回錯誤編號

sqrt(0.0000000065);返回8.06225774。這是錯誤的。它必須是0.000080622577483

如何解決這個問題?

感謝

+3

在http://sandbox.onlinephpfunctions.com/code/fc908b23cc477f43286ba0a9cc296e46a9a90794我得到'8.0622577482986E-5'這是正確的,如果你想格式化你的號碼使用['NumberFormatter'](http:// php。 net/manual/en/class.numberformatter.php)class – apokryfos

+0

你幾乎肯定會得到8.0622577482986E-5。在顯示結果之前是否對結果執行了其他操作? –

+0

http://web2.0calc.com/ – iamgroot

回答