Code CGFloat a=3.45378;
I want change the result to CGFloat a=3.45f; only 2 precision
I know how printf works. but i dont know how to do this just keep 2 precision.
Code CGFloat a=3.45378;
I want change the result to CGFloat a=3.45f; only 2 precision
I know how printf works. but i dont know how to do this just keep 2 precision.
To lose the extra precision, and round to the nearest two decimals, follow these steps: