Skip to content

Commit b3f545b

Browse files
Orthodox-64kgryte
andauthored
chore: add structured package data for math/base/special/round
PR-URL: #8354 Ref: #7924 Co-authored-by: Athan Reines <kgryte@gmail.com> Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent 682cba0 commit b3f545b

File tree

1 file changed

+76
-1
lines changed
  • lib/node_modules/@stdlib/math/base/special/round

1 file changed

+76
-1
lines changed

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

Lines changed: 76 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,80 @@
6161
"integer",
6262
"nearest",
6363
"number"
64-
]
64+
],
65+
"__stdlib__": {
66+
"scaffold": {
67+
"$schema": "math/base@v1.0",
68+
"base_alias": "round",
69+
"alias": "round",
70+
"pkg_desc": "round a numeric value to the nearest integer",
71+
"desc": "rounds a numeric value to the nearest integer",
72+
"short_desc": "",
73+
"parameters": [
74+
{
75+
"name": "x",
76+
"desc": "input value",
77+
"type": {
78+
"javascript": "number",
79+
"jsdoc": "number",
80+
"c": "double",
81+
"dtype": "float64"
82+
},
83+
"domain": [
84+
{
85+
"min": "-infinity",
86+
"max": "infinity"
87+
}
88+
],
89+
"rand": {
90+
"prng": "random/base/uniform",
91+
"parameters": [
92+
-10,
93+
10
94+
]
95+
},
96+
"example_values": [
97+
-10.2,
98+
11.3,
99+
-12.4,
100+
3.5,
101+
-1.6,
102+
64,
103+
27.2,
104+
0,
105+
0.1,
106+
-9,
107+
8.1,
108+
-1,
109+
125,
110+
15.7,
111+
-16.5,
112+
17.9,
113+
-188.7,
114+
19.11,
115+
-200.1,
116+
21.15
117+
]
118+
}
119+
],
120+
"output_policy": "same",
121+
"returns": {
122+
"desc": "function value",
123+
"type": {
124+
"javascript": "number",
125+
"jsdoc": "number",
126+
"c": "double",
127+
"dtype": "float64"
128+
}
129+
},
130+
"keywords": [
131+
"round",
132+
"integer",
133+
"nearest"
134+
],
135+
"extra_keywords": [
136+
"math.round"
137+
]
138+
}
139+
}
65140
}

0 commit comments

Comments
 (0)