You can use number_format() or round() to get 2 decimal places, and that'll correct the value to 0.0. If you use number_format, you'll need to convert it to a float. Using round will work (tested), but if precision here is key, then round may not be best suited.
The world of using doubles/floats sucks sometimes :/