You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clarify that Float does not include NaN or infinity (#780)
* Clarify that Float does not include NaN or infinity
Fixes#778.
This matches the fact that you cannot represent these values in text as
FloatValue, as well as the graphql-js
implementation (https://github.com/graphql/graphql-js/blob/16009cbcb0109da03f2157a868817b886801095a/src/type/scalars.js#L108-L112).
This was perhaps already implied by the word "fractional", but "finite" seems to
be a more standard term for "IEEE 754 floats that are not infinity or NaN".
* Update Section 3 -- Type System.md
* Update CompleteValue() to not return early for NaN
Co-authored-by: Lee Byron <[email protected]>
0 commit comments