revert
This commit is contained in:
parent
2ef96731a3
commit
ae8c3a8b55
1 changed files with 1 additions and 1 deletions
2
app.rb
2
app.rb
|
@ -70,7 +70,7 @@ def readable_number(value)
|
||||||
negative = false
|
negative = false
|
||||||
|
|
||||||
#negative = true if value =~ /\-/
|
#negative = true if value =~ /\-/
|
||||||
value.gsub!(/\-/, '')
|
#value.gsub!(/\-/, '')
|
||||||
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
|
||||||
return sprintf('%.2f', value.to_f / number.to_f) + '<strong>' + symbol + '</strong>'
|
return sprintf('%.2f', value.to_f / number.to_f) + '<strong>' + symbol + '</strong>'
|
||||||
|
|
Loading…
Reference in a new issue