[ruby-core:78344] [Ruby trunk Bug#12980] Time - Time to return a Rational

From: akr@...
Date: 2016-11-25 09:25:20 UTC
List: ruby-core #78344
Issue #12980 has been updated by Akira Tanaka.


It is because ruby-dev:38446 by mame-san.

http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-dev/38446

----------------------------------------
Bug #12980: Time - Time to return a Rational
https://bugs.ruby-lang.org/issues/12980#change-61710

* Author: Akira Matsuda
* Status: Open
* Priority: Normal
* Assignee: Akira Tanaka
* ruby -v: ruby 2.4.0dev (2016-11-25 trunk 56897) [x86_64-darwin15]
* Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
Currently subtracting a Time from a Time returns a Float, which I guess causes #12952

Is there any reason this doesn't return a Rational?



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next