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