Home › Code Snips › Rounding Up A Float In Ruby Rounding Up A Float In Ruby by Kyle on December 04, 2009 · Posted in Ruby 0.3.ceil #=> 1 2.1.ceil #=> 3 Save. Share. Submit. Digg · Twitter · StumbleUpon · Delicious · Facebook · Google · Reddit · Technorati Related Snips Selecting The Array Index With The Maximum Value Initialize Arguments And Superclass Accessing Pi In Ruby Inserting A String Into A String Hide Sidebar