# File lib/wx/metar.rb, line 216 def pf(f,d=2) f = f.scalar if Unit === f s = sprintf("%.#{d}f",f) s.gsub!(/(\.0+|(\.\d*[1-9])0+)$/, '\2') s end