ANNNNDDDDD revert
This commit is contained in:
parent
7f600e94e3
commit
707bcd79b8
1 changed files with 4 additions and 4 deletions
8
app.rb
8
app.rb
|
@ -67,13 +67,13 @@ def players
|
|||
end
|
||||
|
||||
def readable_number(value)
|
||||
negative = false
|
||||
#negative = false
|
||||
|
||||
negative = true if value.to_f < 0
|
||||
value *= -1 if value < 0
|
||||
#negative = true if value.to_f < 0
|
||||
#value *= -1 if value < 0
|
||||
numbers.each do |number, symbol|
|
||||
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>'
|
||||
return new_value
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue