-

cmp - numeric รข complex
Instance Public methods

Performs subtraction.

Complex(2, 3)  - Complex(2, 3)   #=> (0+0i)
Complex(900)   - Complex(1)      #=> (899+0i)
Complex(-2, 9) - Complex(-9, 2)  #=> (7+7i)
Complex(9, 8)  - 4               #=> (5+8i)
Complex(20, 9) - 9.8             #=> (10.2+9i)
doc_ruby_on_rails
2015-04-01 13:08:31
Comments
Leave a Comment

Please login to continue.