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