Menu
Can anyone explain why is this happening ? number_format() function chooses to round off the second digit to “1” for the first three listed below, but does not do so for the last three. Round() function behaves the same way too.
Number format(10.205) : 10.21
Number format(11.205) : 11.21
Number format(15.205) : 15.21
Number format(16.205) : 16.20
Number format(19.205) : 19.20
Number format(20.205) : 20.20