Skip to content

Commit bf30722

Browse files
Orthodox-64kgryte
andauthored
chore: add structured package data for math/base/special/round2
PR-URL: #8355 Ref: #7924 Co-authored-by: Athan Reines <[email protected]> Reviewed-by: Athan Reines <[email protected]>
1 parent b3f545b commit bf30722

File tree

1 file changed

+78
-1
lines changed
  • lib/node_modules/@stdlib/math/base/special/round2

1 file changed

+78
-1
lines changed

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

Lines changed: 78 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,82 @@
6363
"prevpow2",
6464
"nearest",
6565
"number"
66-
]
66+
],
67+
"__stdlib__": {
68+
"scaffold": {
69+
"$schema": "math/[email protected]",
70+
"base_alias": "round2",
71+
"alias": "round2",
72+
"pkg_desc": "round a numeric value to the nearest power of two on a linear scale",
73+
"desc": "rounds a numeric value to the nearest power of two on a linear scale",
74+
"short_desc": "",
75+
"parameters": [
76+
{
77+
"name": "x",
78+
"desc": "input value",
79+
"type": {
80+
"javascript": "number",
81+
"jsdoc": "number",
82+
"c": "double",
83+
"dtype": "float64"
84+
},
85+
"domain": [
86+
{
87+
"min": "-infinity",
88+
"max": "infinity"
89+
}
90+
],
91+
"rand": {
92+
"prng": "random/base/uniform",
93+
"parameters": [
94+
-10,
95+
10
96+
]
97+
},
98+
"example_values": [
99+
64,
100+
27,
101+
0,
102+
0.1,
103+
-9,
104+
8,
105+
-1,
106+
125,
107+
-10.2,
108+
11.3,
109+
-12.4,
110+
3.5,
111+
-1.6,
112+
15.7,
113+
-16,
114+
17.9,
115+
-188,
116+
19.11,
117+
-200,
118+
21.15
119+
]
120+
}
121+
],
122+
"output_policy": "same",
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+
"round",
134+
"round2",
135+
"nextpow2",
136+
"prevpow2",
137+
"nearest"
138+
],
139+
"extra_keywords": [
140+
"math.round"
141+
]
142+
}
143+
}
67144
}

0 commit comments

Comments
 (0)