-
Notifications
You must be signed in to change notification settings - Fork 17
/
floor.json
62 lines (62 loc) · 1.54 KB
/
floor.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
{
"id": "floor",
"summary": "Round fractions down",
"description": "The greatest integer less than or equal to the number `x`.\n\nThis process is *not* an alias for the ``int()`` 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 > rounding"
],
"parameters": [
{
"name": "x",
"description": "A number to round down.",
"schema": {
"type": [
"number",
"null"
]
}
}
],
"returns": {
"description": "The number rounded down.",
"schema": {
"type": [
"integer",
"null"
]
}
},
"examples": [
{
"arguments": {
"x": 0
},
"returns": 0
},
{
"arguments": {
"x": 3.5
},
"returns": 3
},
{
"arguments": {
"x": -0.4
},
"returns": -1
},
{
"arguments": {
"x": -3.5
},
"returns": -4
}
],
"links": [
{
"rel": "about",
"href": "http://mathworld.wolfram.com/FloorFunction.html",
"title": "Floor explained by Wolfram MathWorld"
}
]
}