round(n) doesn't exist in ruby < 1.9

Round(n) doesn't exist in ruby < 1.9 so to make that work with older ruby version we need to modify the round method.