Skip to content

Commit f6d3f0f

Browse files
authored
chore: add structured package data for math/base/special/floor2
PR-URL: #8417 Ref: #7924 Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent 963250c commit f6d3f0f

File tree

1 file changed

+77
-1
lines changed
  • lib/node_modules/@stdlib/math/base/special/floor2

1 file changed

+77
-1
lines changed

lib/node_modules/@stdlib/math/base/special/floor2/package.json

Lines changed: 77 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,81 @@
6464
"prevpow2",
6565
"nearest",
6666
"number"
67-
]
67+
],
68+
"__stdlib__": {
69+
"scaffold": {
70+
"$schema": "math/base@v1.0",
71+
"base_alias": "floor2",
72+
"alias": "floor2",
73+
"pkg_desc": "round a numeric value to the nearest power of two toward negative infinity",
74+
"desc": "rounds a numeric value to the nearest power of two toward negative infinity",
75+
"short_desc": "",
76+
"parameters": [
77+
{
78+
"name": "x",
79+
"desc": "input value",
80+
"type": {
81+
"javascript": "number",
82+
"jsdoc": "number",
83+
"c": "double",
84+
"dtype": "float64"
85+
},
86+
"domain": [
87+
{
88+
"min": "-infinity",
89+
"max": "infinity"
90+
}
91+
],
92+
"rand": {
93+
"prng": "random/base/uniform",
94+
"parameters": [
95+
-10,
96+
10
97+
]
98+
},
99+
"example_values": [
100+
-3.7,
101+
3.5,
102+
-1.2,
103+
-0.1,
104+
0.1,
105+
1.1,
106+
2.9,
107+
5.5,
108+
10.2,
109+
5.9,
110+
2.25,
111+
-3.14,
112+
5,
113+
4.33,
114+
10.2,
115+
-9.99,
116+
9.99,
117+
2.12,
118+
-0.5,
119+
0.5
120+
]
121+
}
122+
],
123+
"returns": {
124+
"desc": "function value",
125+
"type": {
126+
"javascript": "number",
127+
"jsdoc": "number",
128+
"c": "double",
129+
"dtype": "float64"
130+
}
131+
},
132+
"keywords": [
133+
"floor",
134+
"floor2",
135+
"round",
136+
"nextpow2",
137+
"prevpow2"
138+
],
139+
"extra_keywords": [
140+
"math.floor"
141+
]
142+
}
143+
}
68144
}

0 commit comments

Comments
 (0)