Why is 0.125 rounded to 0.12?

So i made my script to calculate 9/8=1,125 and the round it to nearest hundereth.

If I use this:

number = Math.Round(number, 2);

it tells me its 1.12 instead of 1.13, what is the problem?
all numbers are “double”

you should be using a float instead of a double

From the API Guide:

If the number ends in .5 so it is halfway between two integers, one of which is even and the other odd, the even number is returned.

I guess it’s something to do with that…

Danny