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

Problem with metaops on num32 #3738

Closed
p6rt opened this issue Mar 16, 2015 · 6 comments
Closed

Problem with metaops on num32 #3738

p6rt opened this issue Mar 16, 2015 · 6 comments

Comments

@p6rt
Copy link

p6rt commented Mar 16, 2015

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

Searchable as RT124083$

@p6rt
Copy link
Author

p6rt commented Mar 16, 2015

From @lizmat

[13​:04​:39] <lizmat> m​: my num32 @​arr = 1.1e0,1.2e0,1.3e0; my num32 $s = 0e0; for @​arr { $s += $_ }; say $s # jnthn, seems num32 is busted for meta ops
[13​:04​:40] <+camelia> rakudo-moar 748e69​: OUTPUT«-8589934592␤»
[13​:05​:20] <lizmat> m​: my num32 @​arr = 1.1e0,1.2e0,1.3e0; my num32 $s; for @​arr { $s += $_ }; say $s # jnthn​: worse if $s not initialized
[13​:05​:21] <+camelia> rakudo-moar 748e69​: OUTPUT«0␤»

@p6rt
Copy link
Author

p6rt commented Apr 8, 2015

From @FROGGS

This makes it pass but my gut feeling is that this is not sensible​:
https://gist.github.com/FROGGS/c98f455874e50d39ff75

@p6rt
Copy link
Author

p6rt commented Apr 8, 2015

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Dec 1, 2017

From @AlexDaniel

This is now fixed​:
my num32 @​arr = 1.1e0,1.2e0,1.3e0; my num32 $s = 0e0; for @​arr { $s += $_ }; say $s

¦2015.11,ec18f24d2^​: «-8589934592␤»
¦ec18f24,2015.12,HEAD(5929887)​: «3.60000014305115␤»

(2015-12-17) rakudo/rakudo@ec18f24

The second case returns NaN, because uninitialized nums seem to be NaNs. I guess that's ok?

「testneeded」

On 2015-03-16 05​:08​:33, elizabeth wrote​:

[13​:04​:39] <lizmat> m​: my num32 @​arr = 1.1e0,1.2e0,1.3e0; my num32
$s = 0e0; for @​arr { $s += $_ }; say $s # jnthn, seems num32 is
busted for meta ops
[13​:04​:40] <+camelia> rakudo-moar 748e69​: OUTPUT«-8589934592␤»
[13​:05​:20] <lizmat> m​: my num32 @​arr = 1.1e0,1.2e0,1.3e0; my num32
$s; for @​arr { $s += $_ }; say $s # jnthn​: worse if $s not
initialized
[13​:05​:21] <+camelia> rakudo-moar 748e69​: OUTPUT«0␤»

@p6rt
Copy link
Author

p6rt commented Dec 11, 2017

From @zoffixznet

Tests​: Raku/roast@0d871001ffe8a2393c989d1c

@p6rt
Copy link
Author

p6rt commented Dec 11, 2017

@zoffixznet - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Dec 11, 2017
@p6rt p6rt added the testneeded label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant