-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathis_nan.json
More file actions
36 lines (36 loc) · 1.16 KB
/
is_nan.json
File metadata and controls
36 lines (36 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
"id": "is_nan",
"summary": "Value is not a number",
"description": "Checks whether the specified value `x` carries the special value `NaN` (not a number) as defined by the [IEEE Standard 754](https://ieeexplore.ieee.org/document/4610935), in which case it returns `true`. Returns `false` otherwise.",
"categories": [
"comparison",
"math > constants"
],
"parameters": [
{
"name": "x",
"description": "The data to check.",
"schema": {
"description": "Any data type is allowed."
}
}
],
"returns": {
"description": "Returns `true` for `NaN` and `false` otherwise.",
"schema": {
"type": "boolean"
}
},
"links": [
{
"rel": "about",
"href": "https://ieeexplore.ieee.org/document/4610935",
"title": "IEEE Standard 754-2008 for Floating-Point Arithmetic"
},
{
"rel": "about",
"href": "http://mathworld.wolfram.com/NaN.html",
"title": "NaN explained by Wolfram MathWorld"
}
]
}