From f940d30c190fef77e060fc5207baf672d4c1fc17 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Thu, 23 Apr 2015 22:23:25 -0400 Subject: [PATCH] Full reversion since I am drunk --- app.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app.rb b/app.rb index 1e5748e..069bab1 100644 --- a/app.rb +++ b/app.rb @@ -67,18 +67,18 @@ def players end def readable_number(value) - negative = false + #negative = false - negative = true if value.to_f < 0 - value = value * -1 if value < 0 + #negative = true if value.to_f < 0 + #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 + '' end end - value = 0.0 unless value - value = value * -1 if negative + #value = 0.0 unless value + #value = value * -1 if negative return sprintf('%.2f', value) + "_" end