Browse Source

Round percentages to zero decmimal places

tags/last-sinatra-version
Adrian Short 12 years ago
parent
commit
1ffa74ed37
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app.rb

+ 1
- 1
app.rb View File

@@ -41,7 +41,7 @@ helpers do
end

def format_percent(num)
sprintf("%.1f%%", num)
sprintf("%.0f%%", num)
end

def short_date(d)


Loading…
Cancel
Save