I have these numbers in floats like this: 4.53 But when It ends up as 3.00, it displays only 3. How can I make it so that it adds 0's in empty decimal places?
Try number_format (also adds commas as a thousands separator by default).