Rounding Up A Float In Ruby

by Kyle on · Posted in Ruby

0.3.ceil
#=> 1
 
2.1.ceil
#=> 3

Save. Share. Submit.

Related Snips

Hide Sidebar