<?php
$float=88.8;
$type=gettype($float);
echo $type.'<br /> ';
$var=var_dump($float);
echo $var.'<br /> Why are the types of the two executions different, one is double, and the other is Is it float';
?>
零基础学编程!加油!
Floating point type
↓
Single precision + double precision If you use is_float($float), it is also equal to true.
Double and faloat are the same. They both mean floating point type, but the precision of the data expressed is different.
Floating point type
↓
Single precision + double precision If you use is_float($float), it is also equal to true.
Double and faloat are the same. They both mean floating point type, but the precision of the data expressed is different.