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

Add support for .inf and .nan from the Core/JSON schemas #51

Closed
jturner314 opened this issue Feb 5, 2017 · 0 comments
Closed

Add support for .inf and .nan from the Core/JSON schemas #51

jturner314 opened this issue Feb 5, 2017 · 0 comments

Comments

@jturner314
Copy link

yaml-rust currently doesn't support the language-independent representations of +/- infinity and NaN recommended by the YAML spec. The Core schema specifies the following representations:

YAML Rust
.inf, .Inf, .INF, +.inf, +.Inf, +.INF std::f64::INFINITY
-.inf, -.Inf, -.INF std::f64::NEG_INFINITY
.nan, .NaN, .NAN std::f64::NAN

The JSON schema specifies a subset of those.

By the way, thanks for creating this crate!

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