Compatibility with ruby 1.8

Avoiding use of the 1-arg round method introduced in ruby 1.9