How to fix rounding problems with PHP variable