From be3c34d66094e60b74d214e55a4495b36ec0fc49 Mon Sep 17 00:00:00 2001 From: Manvith <148960168+manvith2003@users.noreply.github.com> Date: Sat, 25 Oct 2025 11:12:40 +0530 Subject: [PATCH 1/2] chore: add structured package data for math/base/special/truncf --- 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/truncf/package.json | 79 ++++++++++++++++++- 1 file changed, 78 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/truncf/package.json b/lib/node_modules/@stdlib/math/base/special/truncf/package.json index 0e6f1a5d256f..4b811fc6c87e 100644 --- a/lib/node_modules/@stdlib/math/base/special/truncf/package.json +++ b/lib/node_modules/@stdlib/math/base/special/truncf/package.json @@ -67,5 +67,82 @@ "function", "polyfill", "ponyfill" - ] + ], + "__stdlib__": { + "scaffold": { + "$schema": "math/base@v1.0", + "base_alias": "truncf", + "alias": "truncf", + "pkg_desc": "round a single-precision floating-point number toward zero", + "desc": "rounds a single-precision floating-point number toward zero", + "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": [ + 64.5, + 27.6, + 0.9, + 0.1, + -9.2, + 8.3, + -1.4, + 125.01, + -10.2, + 11.3, + -12.4, + 3.5, + -1.6, + 15.7, + -16, + 17.9, + -188, + 19.11, + -200, + 21.15 + ] + } + ], + "output_policy": "real_floating_point_and_generic", + "returns": { + "desc": "rounded value", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "float", + "dtype": "float32" + } + }, + "keywords": [ + "trunc", + "truncate", + "round", + "integer", + "number" + ], + "extra_keywords": [ + "math.trunc" + ] + } + } } From 39ea0a93f31b4c46d85cf03645612b143c05af82 Mon Sep 17 00:00:00 2001 From: Manvith <148960168+manvith2003@users.noreply.github.com> Date: Wed, 29 Oct 2025 19:08:44 +0530 Subject: [PATCH 2/2] Change base alias from 'truncf' to 'trunc' Signed-off-by: Manvith <148960168+manvith2003@users.noreply.github.com> --- lib/node_modules/@stdlib/math/base/special/truncf/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/truncf/package.json b/lib/node_modules/@stdlib/math/base/special/truncf/package.json index 4b811fc6c87e..5175bd6796a8 100644 --- a/lib/node_modules/@stdlib/math/base/special/truncf/package.json +++ b/lib/node_modules/@stdlib/math/base/special/truncf/package.json @@ -71,7 +71,7 @@ "__stdlib__": { "scaffold": { "$schema": "math/base@v1.0", - "base_alias": "truncf", + "base_alias": "trunc", "alias": "truncf", "pkg_desc": "round a single-precision floating-point number toward zero", "desc": "rounds a single-precision floating-point number toward zero",