It looks like Kathy and Bert weren't thinking about negative numbers for that explanation of how Math.round() works.
I prefer how
the Math class documentation describes the behavior of Math.round().
Returns the closest int to the argument. The result is rounded to an integer by adding 1/2, taking the floor of the result, and casting the result to type int. In other words, the result is equal to the value of the expression:
(int)Math.floor(a + 0.5f)
If it's not already
reported, and it doesn't look as if it has been, you might do us all a favor and email Kathy and/or Bert about this error.
[ January 07, 2004: Message edited by: Dirk Schreckmann ]