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

Robust serialisation of IEEE 754 NaN and Inf #136

Open
timbod7 opened this issue Aug 12, 2021 · 0 comments
Open

Robust serialisation of IEEE 754 NaN and Inf #136

timbod7 opened this issue Aug 12, 2021 · 0 comments

Comments

@timbod7
Copy link
Collaborator

timbod7 commented Aug 12, 2021

Currently the rule is that ADL types Float and Double are serialised as json numbers. This won't work for NaN and Inf across the language bindings.

A possible alternate rule would be:

ADL types Float and Double are serialized as json numbers, except that NaN values are serialised as the string "NaN", and Inf values are serialised as the string "Inf".

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

1 participant