lib/si.rb in si-0.1.0 vs lib/si.rb in si-0.1.1

- old
+ new

@@ -10,9 +10,10 @@ :min_exp => -8, :max_exp => 8, } def si options = {} + options = { :length => options } if options.is_a?(Fixnum) && options >= 3 options = DEFAULT.merge(options) length, min_exp, max_exp = options.values_at(:length, :min_exp, :max_exp) base = options[:base].to_f