Bugs: Browse | Submit New | Admin

[#19673] Confusing display of Rationals

Date:
2008-04-21 02:58
Priority:
3
Submitted By:
Nobody
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
Confusing display of Rationals

Detailed description
Hi,

IRB with utility_belt displays Rational numbers without the "/" sign:
daniel@daniel-desktop:~$ irb -r mathn
>> 4/5
=> 45
>> (4/5).class
=> Rational
>> (4/5).to_s
=> "4/5"
>> (4/5).inspect
=> "4/5"

Without utility_belt:
daniel@daniel-desktop:~$ irb -f -r mathn
irb(main):001:0> 4/5
=> 4/5
irb(main):002:0> (4/5).class
=> Rational
irb(main):003:0> (4/5).to_s
=> "4/5"
irb(main):004:0> (4/5).inspect
=> "4/5"

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item