From 41bb8fe211996516981104c62db7bcf9724cf6fb Mon Sep 17 00:00:00 2001 From: Manvith <148960168+manvith2003@users.noreply.github.com> Date: Thu, 6 Nov 2025 16:00:32 +0530 Subject: [PATCH 1/2] chore: add structured package data for math/base/special/floorf --- 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/floorf/package.json | 80 ++++++++++++++++++- 1 file changed, 79 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/floorf/package.json b/lib/node_modules/@stdlib/math/base/special/floorf/package.json index d3b01793472f..0841769a0b97 100644 --- a/lib/node_modules/@stdlib/math/base/special/floorf/package.json +++ b/lib/node_modules/@stdlib/math/base/special/floorf/package.json @@ -66,5 +66,83 @@ "float", "single-precision", "single" - ] + ], + "__stdlib__": { + "scaffold": { + "$schema": "math/base@v1.0", + "base_alias": "floor", + "alias": "floorf", + "pkg_desc": "round a single-precision floating-point numeric value toward negative infinity", + "desc": "rounds a single-precision floating-point numeric value toward negative infinity", + "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": [ + -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": "float", + "dtype": "float32" + } + }, + "keywords": [ + "floorf", + "round", + "integer", + "nearest", + "float", + "single-precision", + "single" + ], + "extra_keywords": [ + "math.floorf" + ] + } + } } From 18a8b4d5c2e7e436b02e34b62f93b8ecd72c1ce3 Mon Sep 17 00:00:00 2001 From: Athan Date: Thu, 6 Nov 2025 13:26:27 -0800 Subject: [PATCH 2/2] chore: clean-up Signed-off-by: Athan --- .../math/base/special/floorf/package.json | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/floorf/package.json b/lib/node_modules/@stdlib/math/base/special/floorf/package.json index 0841769a0b97..6a0b30ef9186 100644 --- a/lib/node_modules/@stdlib/math/base/special/floorf/package.json +++ b/lib/node_modules/@stdlib/math/base/special/floorf/package.json @@ -1,7 +1,7 @@ { "name": "@stdlib/math/base/special/floorf", "version": "0.0.0", - "description": "Round a single-precision floating-point numeric value toward negative infinity.", + "description": "Round a single-precision floating-point number toward negative infinity.", "license": "Apache-2.0", "author": { "name": "The Stdlib Authors", @@ -56,8 +56,8 @@ "stdmath", "mathematics", "math", - "math.floorf", - "floorf", + "math.floor", + "floor", "round", "integer", "nearest", @@ -72,8 +72,8 @@ "$schema": "math/base@v1.0", "base_alias": "floor", "alias": "floorf", - "pkg_desc": "round a single-precision floating-point numeric value toward negative infinity", - "desc": "rounds a single-precision floating-point numeric value toward negative infinity", + "pkg_desc": "round a single-precision floating-point number toward negative infinity", + "desc": "rounds a single-precision floating-point number toward negative infinity", "short_desc": "", "parameters": [ { @@ -132,16 +132,13 @@ } }, "keywords": [ - "floorf", + "floor", "round", "integer", - "nearest", - "float", - "single-precision", - "single" + "nearest" ], "extra_keywords": [ - "math.floorf" + "math.floor" ] } }