Skip to content

Commit

Permalink
'Ratio' formatting glitch with new Ruby versions
Browse files Browse the repository at this point in the history
  • Loading branch information
epitron committed Apr 25, 2018
1 parent df052fe commit c768df7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/epitools/ratio.rb
Expand Up @@ -48,7 +48,7 @@ def to_f
# Returns a string representing the number in percent
#
def percent
"%0.1f%" % (to_f * 100)
"%0.1f%%" % (to_f * 100)
end
alias_method :to_percent, :percent

Expand Down

0 comments on commit c768df7

Please sign in to comment.