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
You can use round function
round("10.221",2);
Will return 10.22