Project

General

Profile

Actions

Feature #1408

closed

0.1.to_r not equal to (1/10)

Added by phasis68 (Heesob Park) over 15 years ago. Updated about 13 years ago.

Status:
Closed
Target version:
[ruby-core:23318]

Description

=begin
$ ruby -e 'p 0.1.to_r'
(3602879701896397/36028797018963968)

whereas

$ ruby -e 'p "0.1".to_r'
(1/10)
=end


Related issues 1 (0 open1 closed)

Has duplicate Ruby master - Bug #5309: 0.6.to_r != "0.6".to_rRejected09/13/2011Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0