26.09.2015, 22:28
Floatround rounds the number to the nearest whole number.
Which will make 0.751 = 1.
If you want to display 0.751 there's no need to use floatround at all.
If you remove floatround and use %f instead of %d it will display 0.751 correctly.
Which will make 0.751 = 1.
If you want to display 0.751 there's no need to use floatround at all.
If you remove floatround and use %f instead of %d it will display 0.751 correctly.