Skip to content

Commit 2d06b7b

Browse files
committed
chore: add structured package data for math/base/special/trunc2
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: passed - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent ad8f246 commit 2d06b7b

File tree

1 file changed

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

1 file changed

+83
-1
lines changed

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

Lines changed: 83 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,87 @@
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": "round 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+
"number"
147+
],
148+
"extra_keywords": [
149+
"math.trunc"
150+
]
151+
}
152+
}
71153
}

0 commit comments

Comments
 (0)