diff options
Diffstat (limited to 'stddev')
-rwxr-xr-x | stddev | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -2,7 +2,7 @@ require 'trollop' -cfg = Trollop::options do +conf = Trollop::options do banner "stddev [-r <d>] < <one number per line>" opt :round, "Number of digits after decimal point.", :type => :int, :default => -1 end @@ -26,8 +26,8 @@ cached.each { |v| stddev = Math.sqrt(var/i.to_f) -if cfg[:round] >= 0 - puts stddev.round cfg[:round] +if conf[:round] >= 0 + puts stddev.round conf[:round] else puts stddev end |