NOTE; I know about Math.Floor and Math.Round and stuff. That’s not what I’m looking for.
I would like to know how VB.NET 2008 internally handles the rounding off of integers.
For example:
Test1 = (127 / 2) + 13
Test2 = (127 / 2) + 12
Both test variables will give back 76, which seems strange to me.
(127 / 2) = 63.5
So
63.5 + 13 = 76.5
63.5 + 12 = 75.5
Since both have a .5 it seems logical to me that they either get rounded off to above or below. So expected answers are either:
Floor: 76,75 or Ceiling: 77,76
But instead it seems that 76.5 gets floored while 75.5 is upped.
Any clue on what rules VB.NET uses for this?