Skip to content

Commit

Permalink
match standard library float parsing of "-NaN"
Browse files Browse the repository at this point in the history
  • Loading branch information
tspiteri committed Feb 5, 2021
1 parent e003ff4 commit ae26201
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Expand Up @@ -236,6 +236,7 @@ macro_rules! float_trait_impl {
"inf" => return Ok(core::$t::INFINITY),
"-inf" => return Ok(core::$t::NEG_INFINITY),
"NaN" => return Ok(core::$t::NAN),
"-NaN" => return Ok(-core::$t::NAN),
_ => {},
}

Expand Down

0 comments on commit ae26201

Please sign in to comment.