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
Fix Integral values of Inf/NaN #520
Comments
From @cspencerWhen calling the .int method on Inf/Nan, the reported value is incorrect: "Inf.int.say" produces "-2147483648" and "NaN.int.say" produces "-2147483648" |
From @pmichaudOn Mon, Dec 22, 2008 at 06:00:31AM -0800, Cory Spencer wrote:
This turns out to be the way that Parrot converts infinities to Pm |
The RT System itself - Status changed from 'new' to 'open' |
From @cokeOriginally reported against parrot, this is apparently a rakudo issue. Resolving the issue there; details about the issue can still be found at: https://trac.parrot.org/parrot/ticket/370 -- |
From @masak<masak> rakudo: my Int $a = Inf Not, but seriously. S02:649 says that Int should be able to hold Inf |
From @ShimmerFairyJust so you know, that's not the only number it returns. (As a side note, 32-bit PowerPC returns 2147483647, which is a 31 digit |
@coke - Status changed from 'new' to 'open' |
From @masak<masak> rakudo: my Int $x = NaN; say $x |
@pmichaud - Status changed from 'new' to 'open' |
From @pmichaudWe'll have to stall this ticket until we decide how to make NaN fit into Pm |
@pmichaud - Status changed from 'open' to 'stalled' |
From @bbkrNOM: still broken, looks like it's related to Int being converted to Num bbkr:nom bbkr$ ./perl6 -e 'my Int $a = Inf' |
From @cokeOn Mon Dec 22 06:00:30 2008, cspencer wrote:
I think the method for this is now ".Int", but the answers aren't 19:12 < [Coke]> rakudo: say Inf.Int; -- |
From @moritzI'm collecting the Inf + Int tickets here in one place, since a fix for |
From @masak<masak> p6: say Inf.Int; say NaN.Int |
From @moritzI've opened Raku/old-design-docs#27 to discuss some |
@coke - Status changed from 'open' to 'stalled' |
From @cokeOn Sun Dec 30 05:26:51 2012, moritz wrote:
I'm rejecting this ticket from RT - If the spec issues are ever resolved, we can reopen this to track the implementation work. -- |
The RT System itself - Status changed from 'stalled' to 'open' |
@coke - Status changed from 'open' to 'rejected' |
From @zoffixznetTests added in Raku/roast@697b460581 -- |
Migrated from rt.perl.org#61602 (status was 'rejected')
Searchable as RT61602$
The text was updated successfully, but these errors were encountered: