I have this number :
0.953163394286767
I assign this number to float variables.
$vari = (float)$appo;
But if i print i obtain :
0.95316339428677
How can resolve this problem?
I have this number :
0.953163394286767
I assign this number to float variables.
$vari = (float)$appo;
But if i print i obtain :
0.95316339428677
How can resolve this problem?
You may use ini_set function here.
ini_set('precision', 16);
$appo = 0.953163394286767;
echo $vari = (float)$appo;//prints 0.953163394286767
Hope it helps! :)