This commit is contained in:
Andrew Tomaka 2015-04-23 22:35:06 -04:00
parent 9d892d0228
commit 7f600e94e3

2
app.rb
View file

@ -74,7 +74,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 = new_value + sprintf('%.2f', value.to_f / number.to_f) + '<strong>' + symbol + '</strong>'
return new_value return new_value
end end
end end