I am puzzled by what these numbers mean. It seems to me that printf is giving me the wrong results.
echo printf("%.2f", 1);
// 1.004
echo printf("%.3f", 1);
// 1.005
echo printf("%.2f", 1.1234);
// 1.124
First of all, it seems that it prints too many decimal places, and I do not know what these numbers are. Can someone shed light on this issue?
unska source
share