General

Profile

takuto_h (Takuto Hayashi)

  • Login: takuto_h
  • Registered on: 08/01/2013
  • Last sign in: 08/10/2013

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

08/02/2013

10:03 AM Ruby Bug #8717 (Closed): Negation of a rational/imaginary number literal isn't working
Hello.
I've found that negation of a rational/imaginary number literal isn't working.
irb(main):001:0> RUBY_DESCRIPTION
=> "ruby 2.1.0dev (2013-08-02 trunk 42320) [x86_64-linux]"
irb(main):002:0> -3r
=> (3/1)
...
takuto_h (Takuto Hayashi)

08/01/2013

04:53 PM Ruby Feature #8430: Rational number literal
Hello.
I wrote a patch for the rational number literal and recognized that a part of the proposed feature is confusable.
If we accept "1.2r" as "Rational(12, 10)":
1/3r #=> (1/3)
0.4/1.2r #=> 0.33333333333333337
I ...
takuto_h (Takuto Hayashi)

Also available in: Atom