I have issue with my conversion from string to double/float. It is so strange when I run application on my local machine it working great. But when I run it on Hosting4Real hosting it making so much decimals. E.g. code
$number = "5.30";
$convNum = (float)$number;
echo $convNum;
output
5.29999999999999982236431605997495353221893310546875
I have tried number_format() and it works but it's converting to string, I have tried with round and nothing happens. It's so strange and logic wired that I can't understand why it doesn't work.