Project

General

Profile

Actions

Bug #8718

closed

unary minus with literal suffix of Rational/Complex

Added by no6v (Nobuhiro IMAI) over 10 years ago. Updated over 10 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.1.0dev (2013-08-02 trunk 42320) [x86_64-linux]
[ruby-core:56317]

Description

=begin
Unary minus is not supported?

(-1) # => -1
(-1r) # => (1/1) should be (-1/1)
(-1i) # => (0+1i) shoule be (0-1i)
=end

Actions

Also available in: Atom PDF

Like0
Like0