Hello, I am trying to show a float number on the web, but it keeps rounding if it is a 0. like 12.00 it just shows 12.
Bill
echo (float)$no;
type cast to float mandar
try printf("the float is: %f", $number);
instead of %f you can also use %.2f to print the float with only 2 decimals