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