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