whole_number (rubygems): Float and Integer will be converted to whole number, that is 0,1,2,3,4... , when you give a negative num, it will be 0. Also when you give 1.1 =&gt; 1 by Float#to_i 
Keywords: gem