forked from Open-EO/openeo-processes
-
Notifications
You must be signed in to change notification settings - Fork 4
/
is_nan.json
56 lines (56 loc) · 1.52 KB
/
is_nan.json
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{
"id": "is_nan",
"summary": "Value is not a number",
"description": "Checks whether the specified value `x` is *not* a number. Numbers are all integers and floating-point numbers, except for the special value `NaN` as defined by the [IEEE Standard 754](https://ieeexplore.ieee.org/document/4610935).",
"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 all non-numeric data types, otherwise returns `false`.",
"schema": {
"type": "boolean"
}
},
"examples": [
{
"arguments": {
"x": 1
},
"returns": false
},
{
"arguments": {
"x": "Test"
},
"returns": true
},
{
"arguments": {
"x": null
},
"returns": true
}
],
"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"
}
]
}