Project

General

Profile

Actions

Bug #5515

closed

Integer#quo(aFloat) の結果が Rational になる

Added by tadf (tadayoshi funaba) about 13 years ago. Updated almost 11 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 2.0.0dev (2011-10-30 trunk 33566) [i686-linux]
Backport:
[ruby-dev:44710]

Description

Integer#quo(aFloat) の結果が Rational になる。

5.quo(2.0) #=> (5/2)

1.9.2 では Float になります。


Related issues 1 (0 open1 closed)

Related to Ruby master - Bug #8894: Fixnum#quo returns wrong result when given a floatClosedActions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0