From a364e75d463028abd7cf4870ec08a4c104592d15 Mon Sep 17 00:00:00 2001 From: Manvith <148960168+manvith2003@users.noreply.github.com> Date: Thu, 6 Nov 2025 15:54:27 +0530 Subject: [PATCH] chore: add structured package data for math/base/special/floor2 --- 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/floor2/package.json | 78 ++++++++++++++++++- 1 file changed, 77 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/floor2/package.json b/lib/node_modules/@stdlib/math/base/special/floor2/package.json index 2bca996ca2a4..49c2edbb0ea0 100644 --- a/lib/node_modules/@stdlib/math/base/special/floor2/package.json +++ b/lib/node_modules/@stdlib/math/base/special/floor2/package.json @@ -64,5 +64,81 @@ "prevpow2", "nearest", "number" - ] + ], + "__stdlib__": { + "scaffold": { + "$schema": "math/base@v1.0", + "base_alias": "floor2", + "alias": "floor2", + "pkg_desc": "round a numeric value to the nearest power of two toward negative infinity", + "desc": "rounds a numeric value to the nearest power of two toward negative infinity", + "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": [ + -3.7, + 3.5, + -1.2, + -0.1, + 0.1, + 1.1, + 2.9, + 5.5, + 10.2, + 5.9, + 2.25, + -3.14, + 5, + 4.33, + 10.2, + -9.99, + 9.99, + 2.12, + -0.5, + 0.5 + ] + } + ], + "returns": { + "desc": "function value", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "double", + "dtype": "float64" + } + }, + "keywords": [ + "floor", + "floor2", + "round", + "nextpow2", + "prevpow2" + ], + "extra_keywords": [ + "math.floor" + ] + } + } }