From e8df22d5c8ab1ccc98c72fc1f35f453527bbd5d6 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Thu, 23 Apr 2015 22:21:17 -0400 Subject: [PATCH] final neg` --- app.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.rb b/app.rb index 3fd892b..1e5748e 100644 --- a/app.rb +++ b/app.rb @@ -70,7 +70,7 @@ def readable_number(value) negative = false negative = true if value.to_f < 0 - value = value * -1 + value = value * -1 if value < 0 numbers.each do |number, symbol| if value.to_f / number.to_f > 1 return sprintf('%.2f', value.to_f / number.to_f) + '' + symbol + ''