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

[ratio.ratio] What is sign? #5879

Closed
JohelEGP opened this issue Oct 2, 2022 · 5 comments · Fixed by #5925
Closed

[ratio.ratio] What is sign? #5879

JohelEGP opened this issue Oct 2, 2022 · 5 comments · Fixed by #5925

Comments

@JohelEGP
Copy link
Contributor

JohelEGP commented Oct 2, 2022

(2.1)
num shall have the value sign(N) * sign(D) * abs(N) / gcd.

@jwakely
Copy link
Member

jwakely commented Oct 2, 2022

@JohelEGP
Copy link
Contributor Author

JohelEGP commented Oct 2, 2022

Is it supposed to be defined by a normative reference? It's not defined by the WD.

@JohelEGP
Copy link
Contributor Author

JohelEGP commented Oct 2, 2022

Based on https://eel.is/c++draft/intro.defs p1-p2, searching the databases does not show sign being defined by ISO/IEC 2382 nor ISO 80000-2:2009.

@jwakely
Copy link
Member

jwakely commented Oct 2, 2022

It might be in ISO/IEC 10967, Language independent arithmetic (LIA) but I think we only refer to that in footnotes.

@JohelEGP
Copy link
Contributor Author

I see that ISO 80000-2:2019 does define sgn (with verbal equivalent signum, Table 6, item no. 2-10.13).

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