I\'m having problems rounding. I have a float, which I want to round to the hundredth of a decimal. However, I can only use .round which basically turns it in
.round
def rounding(float,precision) return ((float * 10**precision).round.to_f) / (10**precision) end