From dacc283e15d9fe7a437ba5e44e817a0c2fdbe9ce Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Thu, 23 Apr 2015 14:50:09 -0400 Subject: [PATCH] Round decimals to 2 --- app.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.rb b/app.rb index b6d5885..f569104 100644 --- a/app.rb +++ b/app.rb @@ -29,7 +29,7 @@ end def readable_number(value) numbers.each do |number, symbol| if value.to_f / number.to_f > 1 - return (value.to_f / number.to_f).to_s + symbol + return (value.to_f / number.to_f).round(2).to_s + symbol end end