Php support double or float ??? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Php support double or float ???

I saw in video lessons there I found that PHP support double which includes the floating point nd here I found that PHP support float data type as because both had different range I am little confused plz clear my doubt

23rd Jan 2018, 6:50 PM
Kamlesh Katre
Kamlesh Katre - avatar
2 Answers
+ 4
It seems that for PHP there is no difference between double and float - it's the same: https://stackoverflow.com/questions/3280892/difference-between-float-and-double-in-php
25th Jan 2018, 10:24 PM
mmo
0
ty for answerkng me dearbl but I am asking that I know that both are used for decimal point but my question is that is there any difference in precision because there is difference ins size nd precision in both double nd float
26th Jan 2018, 12:07 PM
Kamlesh Katre
Kamlesh Katre - avatar