From b2c035b9cb4f7c293aab0ecf77f0af53dea66722 Mon Sep 17 00:00:00 2001 From: Manvith <148960168+manvith2003@users.noreply.github.com> Date: Mon, 3 Nov 2025 08:59:54 +0530 Subject: [PATCH 1/2] chore: add structured package data for math/base/special/roundf --- 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/roundf/package.json | 77 ++++++++++++++++++- 1 file changed, 76 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/roundf/package.json b/lib/node_modules/@stdlib/math/base/special/roundf/package.json index 3bb5962d776f..0d5ddf868e06 100644 --- a/lib/node_modules/@stdlib/math/base/special/roundf/package.json +++ b/lib/node_modules/@stdlib/math/base/special/roundf/package.json @@ -61,5 +61,80 @@ "integer", "nearest", "number" - ] + ], + "__stdlib__": { + "scaffold": { + "$schema": "math/base@v1.0", + "base_alias": "round", + "alias": "roundf", + "pkg_desc": "round a single-precision floating-point number to the nearest integer", + "desc": "rounds a single-precision floating-point number to the nearest integer", + "short_desc": "", + "parameters": [ + { + "name": "x", + "desc": "input value", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "float", + "dtype": "float32" + }, + "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": "float", + "dtype": "float32" + } + }, + "keywords": [ + "roundf", + "integer", + "nearest" + ], + "extra_keywords": [ + "math.round" + ] + } + } } + From 67c19f3933513ee792881ad01c8696db9dad0c87 Mon Sep 17 00:00:00 2001 From: Athan Date: Mon, 3 Nov 2025 18:37:30 -0800 Subject: [PATCH 2/2] chore: update keywords Signed-off-by: Athan --- .../@stdlib/math/base/special/roundf/package.json | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/roundf/package.json b/lib/node_modules/@stdlib/math/base/special/roundf/package.json index 0d5ddf868e06..79003ff5b215 100644 --- a/lib/node_modules/@stdlib/math/base/special/roundf/package.json +++ b/lib/node_modules/@stdlib/math/base/special/roundf/package.json @@ -57,7 +57,7 @@ "mathematics", "math", "math.round", - "roundf", + "round", "integer", "nearest", "number" @@ -127,7 +127,7 @@ } }, "keywords": [ - "roundf", + "round", "integer", "nearest" ], @@ -137,4 +137,3 @@ } } } -