469,611 Members | 1,959 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,611 developers. It's quick & easy.

How to round float values up at .6 and down if .5 and below

In my case, if the float value is 74.716, it has to rounding into 74.72. But is that value is 74.715, it should be 74.71..

can anyone tel me what rounding ways i need to use?

Thanks in advance
Sep 29 '10 #1
2 1342
Dheeraj Joshi
1,123 Expert 1GB
Use round method available in math class

Take a look here.

Regards
Dheeraj Joshi
Sep 29 '10 #2
Dheeraj Joshi
1,123 Expert 1GB
If this won't work for you. You need to implement your own algorithm.

Regards
Dheeraj Joshi
Sep 29 '10 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by Kelly Mah | last post: by
5 posts views Thread by Cygnus | last post: by
4 posts views Thread by Altman | last post: by
3 posts views Thread by satish mullapudi | last post: by
reply views Thread by kingp | last post: by
4 posts views Thread by AMDRIT | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.