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

Preserve sign on negative zero f32 #799

Closed
RazrFalcon opened this issue Sep 14, 2021 · 1 comment · Fixed by #801
Closed

Preserve sign on negative zero f32 #799

RazrFalcon opened this issue Sep 14, 2021 · 1 comment · Fixed by #801

Comments

@RazrFalcon
Copy link

-0 is parsed as 0 for f32 type.

Is it intentional? I know that this is an edge case, but this is somewhat important for my use case, because it technically two different values.

rustc 1.54.0, serde_json v1.0.67

@dtolnay dtolnay changed the title Preserve sing on negative zero f32 Preserve sign on negative zero f32 Sep 14, 2021
@RazrFalcon
Copy link
Author

Wow, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant