The '%f' specifier is used for floating-point numbers. In printf, '%1.2f' tells PHP to treat the input as a float and display it with at least one digit before the decimal and exactly two digits after. Even though 42 is an integer, it is cast to 42.00.