When I do this typecasting:
(float) \'0.00\';
I get 0. How do I get 0.00 and still have the data type as a float?
0
0.00
Use the number_format() function to change how a number is displayed. It will return a string, the type of the original variable is unaffected.
number_format()
string