lib/pdground/extension.rb in pdground-0.1.0 vs lib/pdground/extension.rb in pdground-0.1.1

- old
+ new

@@ -1,4 +1,6 @@ +# frozen_string_literal: true + # Redefine float with the apropriate options class Float def sigfig(digits) f = format("%.#{digits - 1}e", self) f = f.to_f