Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rat.perl doesn't return decimals when possible #3060

Closed
p6rt opened this issue Mar 3, 2013 · 3 comments
Closed

Rat.perl doesn't return decimals when possible #3060

p6rt opened this issue Mar 3, 2013 · 3 comments

Comments

@p6rt
Copy link

p6rt commented Mar 3, 2013

Migrated from rt.perl.org#117013 (status was 'resolved')

Searchable as RT117013$

@p6rt
Copy link
Author

p6rt commented Mar 3, 2013

From @ShimmerFairy

$ perl6 -e 'say (1/10).perl; say (1/5).perl; say (1/2).perl;'
1/10
1/5
1/2

The output should be​:
.1
.2
.5

Under S02/The Num and Rat Types​: "The |.perl| method will produce a
decimal number if the denominator is a power of 10, or normalizable to a
power of 10 (that is, having factors of only 2 and 5 (and -1))."

@p6rt
Copy link
Author

p6rt commented Mar 3, 2013

From @pmichaud

Now fixed in fd2704355e.

Pm

@p6rt
Copy link
Author

p6rt commented Mar 3, 2013

@pmichaud - Status changed from 'new' to 'resolved'

@p6rt p6rt closed this as completed Mar 3, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant