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 literal fails for moderately large numerator #4551
Comments
From zefram@fysh.org$ ./perl6 -e 'my $a = <2147483647/1>; say 1' This happens with any numerator >= 2**31. Denominators that big aren't -zefram |
From @carbincarlin m: <1176079147668/815> That format is the result returned by Instant.perl: carlin m: my $x = now; say $x.perl Therefore, EVAL(now.perl) doesn't work: carlin m: my $x = now; EVAL($x.perl) psch++ had this insight: psch m: <2147483647/8> psch carlin: i suspect 2**31 - 1 working and 2**31 not is a hint :) -- |
From zefram@fysh.orgThis is a duplicate of [perl #126103]. -zefram |
The RT System itself - Status changed from 'new' to 'open' |
From @AlexDanielThis was fixed in (2016-02-07) rakudo/rakudo@2775261 my $a = <2147483648/1>; say $a # OUTPUT: «2147483648» So it works now, as well as anything bigger: my $a = <99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999/1>; say $a # OUTPUT: «99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999» my $a = <99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999/2>; say $a # OUTPUT: «49999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999.5» 「testneeded」 On 2015-09-18 13:31:54, zefram@fysh.org wrote:
|
The RT System itself - Status changed from 'new' to 'open' |
From @zoffixznetTests: Raku/roast@b610337bd5 |
@zoffixznet - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#126103 (status was 'resolved')
Searchable as RT126103$
The text was updated successfully, but these errors were encountered: