Advertisement

Rounding Floats

Started by December 13, 2000 01:24 PM
0 comments, last by Zerosignull 24 years, 1 month ago
How do i round a float??? I DONT WANT TO THE NEAREST whole number i want to do someting like 12.345678 round to 12.346 how do i dot this??? ~prevail by daring to fail~
In that case you could multiply by 1000., add .5 cast to a long int, cast back to a float and divide by 1000.

This topic is closed to new replies.

Advertisement