Skip to content

Commit 3eadb85

Browse files
committed
chore: add structured package data
--- 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: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 715ab2e commit 3eadb85

File tree

1 file changed

+80
-2
lines changed
  • lib/node_modules/@stdlib/math/base/special/round-nearest-even

1 file changed

+80
-2
lines changed

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

Lines changed: 80 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@stdlib/math/base/special/round-nearest-even",
33
"version": "0.0.0",
4-
"description": "Round a numeric value to the nearest integer with ties rounding to the nearest even integer.",
4+
"description": "Round a double-precision floating-point number to the nearest integer value with ties rounding to the nearest even integer.",
55
"license": "Apache-2.0",
66
"author": {
77
"name": "The Stdlib Authors",
@@ -63,5 +63,83 @@
6363
"integer",
6464
"nearest",
6565
"number"
66-
]
66+
],
67+
"__stdlib__": {
68+
"scaffold": {
69+
"$schema": "math/[email protected]",
70+
"base_alias": "round-nearest-even",
71+
"alias": "round-nearest-even",
72+
"pkg_desc": "round to the nearest integer with ties rounding to the nearest even integer",
73+
"desc": "rounds to the nearest integer with ties rounding to the nearest even integer",
74+
"short_desc": "rounds to nearest integer with ties to even",
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": "integer",
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+
"round-nearest-even",
135+
"round-nearest",
136+
"integer",
137+
"nearest",
138+
"number"
139+
],
140+
"extra_keywords": [
141+
"math.round"
142+
]
143+
}
144+
}
67145
}

0 commit comments

Comments
 (0)