# File lib/standard/facets/math/sign.rb, line 5 def self.sign(x, zero=0.0) (x > 0.0) ? 1.0 : ((x < 0.0) ? -1.0 : zero) end