From 00b5cedaeb97425fa255958832ff4ba5d7c421cd Mon Sep 17 00:00:00 2001 From: Manvith <148960168+manvith2003@users.noreply.github.com> Date: Mon, 3 Nov 2025 08:37:58 +0530 Subject: [PATCH 1/2] chore: add structured package data for math/base/special/round10 --- 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 --- --- .../math/base/special/round10/package.json | 76 ++++++++++++++++++- 1 file changed, 75 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/round10/package.json b/lib/node_modules/@stdlib/math/base/special/round10/package.json index d25a5fc10b1c..7fce611b3af7 100644 --- a/lib/node_modules/@stdlib/math/base/special/round10/package.json +++ b/lib/node_modules/@stdlib/math/base/special/round10/package.json @@ -61,5 +61,79 @@ "round10", "nearest", "number" - ] + ], + "__stdlib__": { + "scaffold": { + "$schema": "math/base@v1.0", + "base_alias": "round", + "alias": "round", + "pkg_desc": "round a numeric value to the nearest power of 10 on a linear scale", + "desc": "rounds a numeric value to the nearest power of ten on a linear scale", + "short_desc": "", + "parameters": [ + { + "name": "x", + "desc": "input value", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "double", + "dtype": "float64" + }, + "domain": [ + { + "min": "-infinity", + "max": "infinity" + } + ], + "rand": { + "prng": "random/base/uniform", + "parameters": [ + -10, + 10 + ] + }, + "example_values": [ + -10.2, + 11.3, + -12.4, + 3.5, + -1.6, + 64, + 27.2, + 0, + 0.1, + -9, + 8.1, + -1, + 125, + 15.7, + -16.5, + 17.9, + -188.7, + 19.11, + -200.1, + 21.15 + ] + } + ], + "returns": { + "desc": "function value", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "double", + "dtype": "float64" + } + }, + "keywords": [ + "round", + "round10", + "nearest" + ], + "extra_keywords": [ + "math.round" + ] + } + } } From 4eca112e2c547b8df5a3664c3182adf4b878d613 Mon Sep 17 00:00:00 2001 From: Athan Date: Mon, 3 Nov 2025 18:38:39 -0800 Subject: [PATCH 2/2] docs: fix aliases Signed-off-by: Athan --- .../@stdlib/math/base/special/round10/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/round10/package.json b/lib/node_modules/@stdlib/math/base/special/round10/package.json index 7fce611b3af7..0f67505ad365 100644 --- a/lib/node_modules/@stdlib/math/base/special/round10/package.json +++ b/lib/node_modules/@stdlib/math/base/special/round10/package.json @@ -65,8 +65,8 @@ "__stdlib__": { "scaffold": { "$schema": "math/base@v1.0", - "base_alias": "round", - "alias": "round", + "base_alias": "round10", + "alias": "round10", "pkg_desc": "round a numeric value to the nearest power of 10 on a linear scale", "desc": "rounds a numeric value to the nearest power of ten on a linear scale", "short_desc": "",