From cefff50d792635539e3f41db29fd3ee9fccb74cb Mon Sep 17 00:00:00 2001 From: Manvith <148960168+manvith2003@users.noreply.github.com> Date: Sat, 25 Oct 2025 10:33:33 +0530 Subject: [PATCH 1/2] chore: add structured package data for math/base/special/trunc --- 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/trunc/package.json | 79 ++++++++++++++++++- 1 file changed, 78 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/trunc/package.json b/lib/node_modules/@stdlib/math/base/special/trunc/package.json index 41d8c376a9a0..cfc37dcb3698 100644 --- a/lib/node_modules/@stdlib/math/base/special/trunc/package.json +++ b/lib/node_modules/@stdlib/math/base/special/trunc/package.json @@ -67,5 +67,82 @@ "function", "polyfill", "ponyfill" - ] + ], + "__stdlib__": { + "scaffold": { + "$schema": "math/base@v1.0", + "base_alias": "trunc", + "alias": "trunc", + "pkg_desc": "round a double-precision floating-point number toward zero", + "desc": "rounds a double-precision floating-point number toward zero", + "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": [ + 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": "double", + "dtype": "float64" + } + }, + "keywords": [ + "trunc", + "truncate", + "round", + "integer", + "number" + ], + "extra_keywords": [ + "math.trunc" + ] + } + } } From fb8e538aaeb54cbf289b96079c0146e0e08b6a08 Mon Sep 17 00:00:00 2001 From: Athan Date: Wed, 29 Oct 2025 18:01:27 -0700 Subject: [PATCH 2/2] chore: update keywords Signed-off-by: Athan --- lib/node_modules/@stdlib/math/base/special/trunc/package.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/trunc/package.json b/lib/node_modules/@stdlib/math/base/special/trunc/package.json index cfc37dcb3698..fd383e7e32ad 100644 --- a/lib/node_modules/@stdlib/math/base/special/trunc/package.json +++ b/lib/node_modules/@stdlib/math/base/special/trunc/package.json @@ -137,8 +137,7 @@ "trunc", "truncate", "round", - "integer", - "number" + "nearest" ], "extra_keywords": [ "math.trunc"