By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,667 Members | 1,321 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,667 IT Pros & Developers. It's quick & easy.

Not Random....

P: n/a

I'm sorry, I was wrong, I mean Math "Round", no
Math "Random", ....

I hope you can help me, and my excuses....
Hector......
Nov 13 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a

I mean :
"Round with various different types of rounding
rather than just bankers' rounding"

Can any one give some ideas???

Nov 13 '05 #2

P: n/a
Hector Martinez <hm********@uci.cu> wrote:
I mean :
"Round with various different types of rounding
rather than just bankers' rounding"

Can any one give some ideas???


What kind of ideas? Implementation? The kinds of rounding to use?

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too
Nov 13 '05 #3

P: n/a


Can any one give some ideas???

What kind of ideas? Implementation? The kinds of

rounding to use?

I'm collecting kinds of rounding to use, I don't need
Implementation ideas, "No yet"...
Thanks, for answer me... Give some Ideas.
Nov 13 '05 #4

P: n/a
Hector Martinez <hm********@uci.cu> wrote:
I'm collecting kinds of rounding to use, I don't need
Implementation ideas, "No yet"...


Right. I would suggest:

Truncation towards 0 (0.6->0, -0.6 ->0, -0.4 -> 0)
Truncation down (0.6->0, -0.6 ->-1, -0.4 -> -1)
Round halves towards 0 (0.6->1, -0.6 ->-1, -0.4->0, 0.5->0, -0.5->0)
Round halves up (0.6->1, -0.6 ->-1, -0.4->0, 0.5->1, -0.5->0)
Round halves away from 0 (0.6->1, -0.6 ->-1, -0.4->0, 0.5->1, -0.5->-1)
Banker's round (round halves towards even)

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too
Nov 13 '05 #5

P: n/a


Jhon....Thanks for all..
Nov 13 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.