I have this code
$vad = 1.1; print gettype($vad); var_dump($vad);
this will output:
double float(1.1)
So it is double or float in php?
There is no difference in PHP. float, double or real are the same datatype.
float
double
real
At the C level, everything is stored as a double. The real size is still platform-dependent.
See the manual for more details: http://www.php.net/manual/en/language.types.float.php
1.4m articles
1.4m replys
5 comments
56.9k users