Round up to the nearest tenth?

This works in general:

ceil(number*10)/10

So in Ruby it should be like:

(number*10).ceil/10.0

Leave a Comment