I do my php work on my dev box at home, where I\'ve got a rudimentary LAMP setup. When I look at my website on my home box, any numbers I echo are automatically truncated t
You should use the round() command to always round down the precision you want, otherwise some day you'll get something like 2.2000000000123 due to the nature of float arithmetic.