To. hnd (Programmer)
In source...
Example:
float x;
int ix;
x=2001.18; // should be rounded to 1 place
ix = x*10+0.5; // x =20012.3 ix=20012;
x = ix/10; // x= 2001.2
finally, have x 2001.2 ???
i think that x have 2001.000000. ^^;
be happy~
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.