Issue #5523 has been updated by tadayoshi funaba.


莢????吟??荀??????????????筝紫?若???c?????????с??0 ??? 1 ?????篋????????????????障?????
茲?膣???違????若??????????????障?????

Common Lisp ??? signum ????膣???違?????ゃ??菴??????障?????????????????<????c?????????
????????????????障??????

class Numeric
  def signum
    if self.zero?
      self
    else
      self / self.abs
    end
  end
end

----------------------------------------
Feature #5523: Numeric#sign ??ョ霑ス???
http://redmine.ruby-lang.org/issues/5523

Author: tadayoshi funaba
Status: Open
Priority: Normal
Assignee: 
Category: core
Target version: 2.0


莢????吟????????罩c????哘????ゆ????????????????荀???с?????絎???????complex ???
lib/cmath.rb ????筝??с?????????????ゆ???綽?荀???с????????罔?羣???с???箴??????????
????????????????筝????吟????????c?????障?????

??ゃ??-1???+1????????????????????障?????


-- 
http://redmine.ruby-lang.org