Skip to content

Confusion about the word "canonical" for NaNs #1613

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

Closed
sunfishcode opened this issue Feb 22, 2023 · 1 comment · Fixed by #1614
Closed

Confusion about the word "canonical" for NaNs #1613

sunfishcode opened this issue Feb 22, 2023 · 1 comment · Fixed by #1614

Comments

@sunfishcode
Copy link
Member

The Wasm spec uses the word "canonical" to describe NaNs in a particular form. I recently spoke with someone who was confused because IEEE 754 also has a concept of a "canonical" representation for a NaN, and it's not the same as the Wasm spec's.

Please consider adding a note to the spec mentioning that IEEE 754's "canonical" and Wasm's "canonical" are different things.

@rossberg
Copy link
Member

If I read IEEE correctly, then it defines canonical NaN only for decimal formats. Hope #1614 makes sense. @sunfishcode, PTAL.

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

Successfully merging a pull request may close this issue.

2 participants