Changing the float output format to show numbers after decimal.
Changing the float output format to show numbers after decimal.

number_format() doesn't show any digits after the decimal place by default so all floats less than 1 were just printed as 0.
sprintf("%g", ...) shows a float in either decimal or scientific notation whichever is shorter. It's also location aware and will use the appropriate thousands separator.

mover-io/belt