final neg`

This commit is contained in:
Andrew Tomaka 2015-04-23 22:21:17 -04:00
parent 5ae6675cba
commit e8df22d5c8

2
app.rb
View file

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