User | Kudos |
---|---|
11 | |
10 | |
3 | |
3 | |
2 |
We have a Round towards -Infinity (3.8 becomes 3, -3.8 becomes -4)
We have a Round towards +Infinity (3.2 becomes 4, -3.2 becomes 3)
We have a Round to Nearest (Rounds up or down to nearest integer, if 0.5, banker's rounding to even integer)
Why is there no Round towards Zero? Basically a truncate. (3.2 becomes 3, -3.2 becomes -3)
I have a use for that right now, but it takes several primitives to work.
As a corollary, a Round Away from Zero. (3.2 becomes 4, -3.2 becomes -4)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.