How to force objects to return Float / Number properties to two decimal places, even when the value is 1, 2, 3, 4 ... example 1.00, 2.00, 3.00, 4.0

I use the friendsofcake API and would like to know if there is a possibility of forcing the properties of Float / Number objects to return to two decimal places even when the value is 1, 2, 3, 4 …

Example 1.00, 2.00, 3.0, 4.00