首頁  >  文章  >  後端開發  >  flash player activex PHP中的float型別使用說明

flash player activex PHP中的float型別使用說明

WBOY
WBOY原創
2016-07-29 08:43:231395瀏覽

float類型的表示可以有以下:

複製程式碼 程式碼如下:


$a = 1.234;
$b = 1.2e3;
$c = 7E-10;
?>


使用PHP的float類型需要注意的是:PHP的floatat的精度有點問題。如果需要高精度的數學計算,可以使用php提供的專用的數學函數 arbitrary precision math functions系列和gmp系列函數。還有就是不要試圖進行比較float類型的變數。
Converting to float
For information on converting strings to float, see String conversion to numbers. For values of other types, the conversion is performed by converting the value to int types, the conversion is performed by converting the value to integer first and then fvert int more information. As of PHP 5, a notice is thrown if an object is converted to float.
不翻譯了。呵呵

以上就介紹了flash player activex PHP中的float類型使用說明,包括了flash player activex方面的內容,希望對PHP教學有興趣的朋友有幫助。

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn