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
thanks for all the answers - the solution was to cast the return value of the method responsible to a float. I.e. it was doing
return someNumber.' grams';
I just changed it to
return (float)someNumber.' grams';
then PHP truncated any trailing zeroes when required.
Can someone close this?