This commit is contained in:
Andrew Tomaka 2015-04-25 13:05:50 -04:00
parent e78792d435
commit 65c8c701f0

2
app.rb
View file

@ -77,7 +77,7 @@ def readable_number(value)
numbers.each do |number, symbol| numbers.each do |number, symbol|
if value.to_f / number.to_f > 1 if value.to_f / number.to_f > 1
#new_value = '-' if negative #new_value = '-' if negative
new_value += sprintf('%.2f', value.to_f / number.to_f) + '<strong>' + symbol + '</strong>' new_value = sprintf('%.2f', value.to_f / number.to_f) + '<strong>' + symbol + '</strong>'
return new_value return new_value
end end
end end