From 60f23f89916cd8c4a7da0da741580726584a9281 Mon Sep 17 00:00:00 2001 From: Manvith <148960168+manvith2003@users.noreply.github.com> Date: Sat, 25 Oct 2025 10:44:45 +0530 Subject: [PATCH 1/5] chore: add structured package data for math/base/special/trunc10 --- 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/trunc10/package.json | 82 ++++++++++++++++++- 1 file changed, 81 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/trunc10/package.json b/lib/node_modules/@stdlib/math/base/special/trunc10/package.json index 866baa2746b9..4c0e4659bcca 100644 --- a/lib/node_modules/@stdlib/math/base/special/trunc10/package.json +++ b/lib/node_modules/@stdlib/math/base/special/trunc10/package.json @@ -65,5 +65,85 @@ "ceil", "nearest", "number" - ] + ], + "__stdlib__": { + "scaffold": { + "$schema": "math/base@v1.0", + "base_alias": "trunc10", + "alias": "trunc10", + "pkg_desc": "round a numeric value to the nearest power of 10 toward zero", + "desc": "round a numeric value to the nearest power of 10 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": [ + -1000, + 1000 + ] + }, + "example_values": [ + 5.6, + 49, + 0.7, + -0.9, + -42, + 88, + -3.2, + 120, + -15, + 230, + -375, + 0, + 9, + -99, + 100, + -1000, + 1500, + -2500, + 7, + -8 + ] + } + ], + "output_policy": "real_floating_point_and_generic", + "returns": { + "desc": "rounded value", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "double", + "dtype": "float64" + } + }, + "keywords": [ + "truncate", + "trunc", + "trunc10", + "round", + "floor", + "ceil", + "nearest", + "number" + ], + "extra_keywords": [ + "math.trunc" + ] + } + } } From 9f40a3725088f32d6a495a742a47647041de881c Mon Sep 17 00:00:00 2001 From: Manvith <148960168+manvith2003@users.noreply.github.com> Date: Wed, 29 Oct 2025 19:06:44 +0530 Subject: [PATCH 2/5] Change base alias from 'trunc10' to 'trunc' Signed-off-by: Manvith <148960168+manvith2003@users.noreply.github.com> --- lib/node_modules/@stdlib/math/base/special/trunc10/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/trunc10/package.json b/lib/node_modules/@stdlib/math/base/special/trunc10/package.json index 4c0e4659bcca..9c56551b7725 100644 --- a/lib/node_modules/@stdlib/math/base/special/trunc10/package.json +++ b/lib/node_modules/@stdlib/math/base/special/trunc10/package.json @@ -69,7 +69,7 @@ "__stdlib__": { "scaffold": { "$schema": "math/base@v1.0", - "base_alias": "trunc10", + "base_alias": "trunc", "alias": "trunc10", "pkg_desc": "round a numeric value to the nearest power of 10 toward zero", "desc": "round a numeric value to the nearest power of 10 toward zero", From ca777e2047be582d1a74ca485859a153a18f1340 Mon Sep 17 00:00:00 2001 From: Athan Date: Wed, 29 Oct 2025 17:58:37 -0700 Subject: [PATCH 3/5] chore: fix base alias Signed-off-by: Athan --- lib/node_modules/@stdlib/math/base/special/trunc10/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/trunc10/package.json b/lib/node_modules/@stdlib/math/base/special/trunc10/package.json index 9c56551b7725..4c0e4659bcca 100644 --- a/lib/node_modules/@stdlib/math/base/special/trunc10/package.json +++ b/lib/node_modules/@stdlib/math/base/special/trunc10/package.json @@ -69,7 +69,7 @@ "__stdlib__": { "scaffold": { "$schema": "math/base@v1.0", - "base_alias": "trunc", + "base_alias": "trunc10", "alias": "trunc10", "pkg_desc": "round a numeric value to the nearest power of 10 toward zero", "desc": "round a numeric value to the nearest power of 10 toward zero", From 9750588e0dbb0e68c8cdf8db10336f28992f79fd Mon Sep 17 00:00:00 2001 From: Athan Date: Wed, 29 Oct 2025 17:58:59 -0700 Subject: [PATCH 4/5] chore: update keywords Signed-off-by: Athan --- .../@stdlib/math/base/special/trunc10/package.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/trunc10/package.json b/lib/node_modules/@stdlib/math/base/special/trunc10/package.json index 4c0e4659bcca..17f5ec928228 100644 --- a/lib/node_modules/@stdlib/math/base/special/trunc10/package.json +++ b/lib/node_modules/@stdlib/math/base/special/trunc10/package.json @@ -138,8 +138,7 @@ "round", "floor", "ceil", - "nearest", - "number" + "nearest" ], "extra_keywords": [ "math.trunc" From 88309973fa0383131c9baef0b95e23b552b3a920 Mon Sep 17 00:00:00 2001 From: Athan Date: Wed, 29 Oct 2025 17:59:25 -0700 Subject: [PATCH 5/5] docs: fix description Signed-off-by: Athan --- lib/node_modules/@stdlib/math/base/special/trunc10/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/trunc10/package.json b/lib/node_modules/@stdlib/math/base/special/trunc10/package.json index 17f5ec928228..b5ad1a3c6a90 100644 --- a/lib/node_modules/@stdlib/math/base/special/trunc10/package.json +++ b/lib/node_modules/@stdlib/math/base/special/trunc10/package.json @@ -72,7 +72,7 @@ "base_alias": "trunc10", "alias": "trunc10", "pkg_desc": "round a numeric value to the nearest power of 10 toward zero", - "desc": "round a numeric value to the nearest power of 10 toward zero", + "desc": "rounds a numeric value to the nearest power of 10 toward zero", "short_desc": "", "parameters": [ {