#!/usr/bin/env rubyrequire 'rational'require 'mathn'rat = Rational(25/100) # => 1/4 -- lowest termsrat <=> 1/4 # => 0rat <=> 1/8 # => 1rat <=> 1/2 # => -1