This commit is contained in:
Andrew Tomaka 2015-04-23 21:57:09 -04:00
parent 3dff091662
commit b9d2492d9d

4
app.rb
View file

@ -69,8 +69,8 @@ end
def readable_number(value)
negative = false
negative = true if value =~ /\-/
value.gsub!(/-/, '')
#negative = true if value =~ /\-/
#value.gsub!(/-/, '')
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>'