-
Notifications
You must be signed in to change notification settings - Fork 16
/
int.json
63 lines (63 loc) · 1.53 KB
/
int.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
57
58
59
60
61
62
63
{
"id": "int",
"summary": "Integer part of a number",
"description": "The integer part of the real number `x`.\n\nThis process is *not* an alias for the ``floor()`` process as defined by some mathematicians, see the examples for negative numbers in both processes for differences.\n\nThe no-data value `null` is passed through and therefore gets propagated.",
"categories": [
"math",
"math > rounding"
],
"parameters": [
{
"name": "x",
"description": "A number.",
"schema": {
"type": [
"number",
"null"
]
}
}
],
"returns": {
"description": "Integer part of the number.",
"schema": {
"type": [
"integer",
"null"
]
}
},
"examples": [
{
"arguments": {
"x": 0
},
"returns": 0
},
{
"arguments": {
"x": 3.5
},
"returns": 3
},
{
"arguments": {
"x": -0.4
},
"returns": 0
},
{
"arguments": {
"x": -3.5
},
"returns": -3
}
],
"links": [
{
"rel": "about",
"href": "http://mathworld.wolfram.com/IntegerPart.html",
"title": "Integer Part explained by Wolfram MathWorld"
}
]
}