How come...?
$gengi = 88.300000; $dollari = 1; $utkoma = $gengi * $dollari; # Output of $utkoma is: 88.3
Whyyyyyy? I've tried round(); but it doesn't work.
PHP drops insignificant zero's unless instructed otherwise:
<?php $gengi = 88.300000; $dollari = 1; $utkoma = $gengi * $dollari; //Output of $utkoma is: 88.3 echo number_format($utkoma,6); // Output is 88.300000 ?>
Bloody hell, I always forget this function. Well thanks, mate.