色尼玛亚洲综合影院,亚洲3atv精品一区二区三区,麻豆freexxxx性91精品,欧美在线91

PHP中的float類型使用說明

float類型的表示可以有以下幾種:
復制代碼 代碼如下:
<?php
$a = 1.234;
$b = 1.2e3;
$c = 7E-10;
?>

使用php的float類型需要注意的是:php的float類型的精度有點問題。如果需要高精度的數學計算,可以使用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 integer first and then to float. See Converting to integer for more information. As of php 5, a notice is thrown if an object is converted to float.

不翻譯了。呵呵

php技術PHP中的float類型使用說明,轉載需保留來源!

鄭重聲明:本文版權歸原作者所有,轉載文章僅為傳播更多信息之目的,如作者信息標記有誤,請第一時間聯系我們修改或刪除,多謝。

主站蜘蛛池模板: 韩城市| 烟台市| 二手房| 会宁县| 逊克县| 东海县| 汉川市| 泸溪县| 滦平县| 祁阳县| 隆回县| 芷江| 安阳市| 会宁县| 桦南县| 汕头市| 廊坊市| 连南| 图们市| 清水河县| 兴国县| 班玛县| 墨江| 渝中区| 汶上县| 太仆寺旗| 安福县| 双江| 阳山县| 横峰县| 剑河县| 定襄县| 随州市| 牟定县| 乾安县| 涿州市| 临江市| 长阳| 读书| 临高县| 通化县|