float = 1.4
print float.round
1
float = 3452.6
print float.round
3453
Their are also ".ceil" and ".floor". .ceil will always round up to the next nearest whole integer, whil .floor always round down.
.round and .to_i are basically the same thing, they round down for decimal value less than .5, and up for .5 and greater.