posted 19 years ago
"Math.Round - the result is calculated by addig 0.5 to the argument and then take Math.floor of the result"
Robbie, I know you know this, but for the sake of completeness, don't forget the cast to long or int after applying Math.floor. (Or put another way, don't forget that Math.floor returns a double which must then be cast.)