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

Propagate Double64 through sign function #209

Open
DanielDoehring opened this issue Nov 11, 2024 · 2 comments
Open

Propagate Double64 through sign function #209

DanielDoehring opened this issue Nov 11, 2024 · 2 comments

Comments

@DanielDoehring
Copy link

julia> typeof(sign(Double64(42)))
Float64

In my opinion, the sign function should return an integer, but as the standard/Base Julia version seems to return a Float, I would like to see this propagating through.

@JeffreySarnoff
Copy link
Member

you want sign(Double64(_)) to return a Double64?

@DanielDoehring
Copy link
Author

Yes, to match the expected behaviour as documented for floating point datatypes 👍

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