Skip to content

Commit

Permalink
percentage-change: print a trailing newline
Browse files Browse the repository at this point in the history
  • Loading branch information
robmiller committed May 8, 2018
1 parent 0739941 commit 72d87c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/percentage-change
@@ -1,3 +1,3 @@
#!/usr/bin/env ruby

print ((ARGV[1].to_f - ARGV[0].to_f) / ARGV[0].to_f * 100).round(3), "%"
print ((ARGV[1].to_f - ARGV[0].to_f) / ARGV[0].to_f * 100).round(3), "%\n"

0 comments on commit 72d87c8

Please sign in to comment.