Ruby: Rounding off to two decimals

Problem:

If you want to round a floating point number off to two decimals, there is no standard method in Ruby that does it for you.

Solution:

See the code sample for adding this functionality to the Float class.