...
This commit is contained in:
parent
707bcd79b8
commit
73b82a2ad4
1 changed files with 1 additions and 1 deletions
2
app.rb
2
app.rb
|
@ -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 = 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
|
||||||
|
|
Loading…
Reference in a new issue