Skip to content

Commit 8bdf8cb

Browse files
manvith2003kgryte
andauthored
chore: add structured package data for math/base/special/trunc2
PR-URL: #8289 Ref: #7924 Co-authored-by: Athan Reines <[email protected]> Reviewed-by: Athan Reines <[email protected]>
1 parent 50d8f17 commit 8bdf8cb

File tree

1 file changed

+82
-1
lines changed
  • lib/node_modules/@stdlib/math/base/special/trunc2

1 file changed

+82
-1
lines changed

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

Lines changed: 82 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,86 @@
6767
"prevpow2",
6868
"nearest",
6969
"number"
70-
]
70+
],
71+
"__stdlib__": {
72+
"scaffold": {
73+
"$schema": "math/[email protected]",
74+
"base_alias": "trunc2",
75+
"alias": "trunc2",
76+
"pkg_desc": "round a numeric value to the nearest power of two toward zero",
77+
"desc": "rounds a numeric value to the nearest power of two toward zero",
78+
"short_desc": "",
79+
"parameters": [
80+
{
81+
"name": "x",
82+
"desc": "input value",
83+
"type": {
84+
"javascript": "number",
85+
"jsdoc": "number",
86+
"c": "double",
87+
"dtype": "float64"
88+
},
89+
"domain": [
90+
{
91+
"min": "-infinity",
92+
"max": "infinity"
93+
}
94+
],
95+
"rand": {
96+
"prng": "random/base/uniform",
97+
"parameters": [
98+
-1000,
99+
1000
100+
]
101+
},
102+
"example_values": [
103+
5.6,
104+
49,
105+
0.7,
106+
-0.9,
107+
-42,
108+
88,
109+
-3.2,
110+
120,
111+
-15,
112+
230,
113+
-375,
114+
0,
115+
9,
116+
-99,
117+
100,
118+
-1000,
119+
1500,
120+
-2500,
121+
7,
122+
-8
123+
]
124+
}
125+
],
126+
"output_policy": "real_floating_point_and_generic",
127+
"returns": {
128+
"desc": "rounded value",
129+
"type": {
130+
"javascript": "number",
131+
"jsdoc": "number",
132+
"c": "double",
133+
"dtype": "float64"
134+
}
135+
},
136+
"keywords": [
137+
"truncate",
138+
"trunc",
139+
"trunc2",
140+
"round",
141+
"floor",
142+
"ceil",
143+
"nextpow2",
144+
"prevpow2",
145+
"nearest"
146+
],
147+
"extra_keywords": [
148+
"math.trunc"
149+
]
150+
}
151+
}
71152
}

0 commit comments

Comments
 (0)