Full reversion since I am drunk

This commit is contained in:
Andrew Tomaka 2015-04-23 22:23:25 -04:00
parent e8df22d5c8
commit f940d30c19

10
app.rb
View file

@ -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) + '<strong>' + symbol + '</strong>'
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