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

RoundFromZero is only defined for BigFloat #42192

Closed
gbaraldi opened this issue Sep 10, 2021 · 1 comment
Closed

RoundFromZero is only defined for BigFloat #42192

gbaraldi opened this issue Sep 10, 2021 · 1 comment

Comments

@gbaraldi
Copy link
Member

The title basically.
It seems pretty random that it isn't defined.

IMO this should work:

round(Int,1.4, RoundFromZero)
2

round(Int,-1.4, RoundFromZero)
-2

But it doesn't

@gbaraldi gbaraldi changed the title Why is RoundFromZero only defined for BigFloat Why is RoundFromZero only defined for BigFloat? Sep 10, 2021
@gbaraldi gbaraldi changed the title Why is RoundFromZero only defined for BigFloat? RoundFromZero is only defined for BigFloat Sep 10, 2021
@kimikage
Copy link
Contributor

Dup of #41182. (See also PR #41246)

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

No branches or pull requests

2 participants