From 3c32a23b82e80909cecb2d5199d66e68efd5f6ef Mon Sep 17 00:00:00 2001 From: Sachin Pangal Date: Sun, 2 Nov 2025 23:57:04 +0530 Subject: [PATCH 1/3] chore: add structured package data for math/base/special/round --- .../math/base/special/round/package.json | 78 ++++++++++++++++++- 1 file changed, 77 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/round/package.json b/lib/node_modules/@stdlib/math/base/special/round/package.json index 60d9cd66b904..0202a9bffa40 100644 --- a/lib/node_modules/@stdlib/math/base/special/round/package.json +++ b/lib/node_modules/@stdlib/math/base/special/round/package.json @@ -61,5 +61,81 @@ "integer", "nearest", "number" - ] + ], + "__stdlib__": { + "scaffold": { + "$schema": "math/base@v1.0", + "base_alias": "round", + "alias": "round", + "pkg_desc": "round a numeric value to the nearest integer", + "desc": "rounds a numeric value to the nearest integer", + "short_desc": "rounds to nearest integer", + "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, + 27, + 0, + 0.1, + -9, + 8, + -1, + 125, + -10.2, + 11.3, + -12.4, + 3.5, + -1.6, + 15.7, + -16, + 17.9, + -188, + 19.11, + -200, + 21.15 + ] + } + ], + "output_policy": "same", + "returns": { + "desc": "function value", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "double", + "dtype": "float64" + } + }, + "keywords": [ + "round", + "integer", + "nearest", + "number" + ], + "extra_keywords": [ + "math.round" + ] + } + } } From a54b774ab1867064cb94c94ea50a0778b3e05d86 Mon Sep 17 00:00:00 2001 From: Athan Date: Sun, 2 Nov 2025 16:46:40 -0800 Subject: [PATCH 2/3] docs: update desc Signed-off-by: Athan --- lib/node_modules/@stdlib/math/base/special/round/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/round/package.json b/lib/node_modules/@stdlib/math/base/special/round/package.json index 0202a9bffa40..be0be4fdb2a5 100644 --- a/lib/node_modules/@stdlib/math/base/special/round/package.json +++ b/lib/node_modules/@stdlib/math/base/special/round/package.json @@ -69,7 +69,7 @@ "alias": "round", "pkg_desc": "round a numeric value to the nearest integer", "desc": "rounds a numeric value to the nearest integer", - "short_desc": "rounds to nearest integer", + "short_desc": "", "parameters": [ { "name": "x", From 104d50aa59529974e0dd55f96efd02f1d53f22c5 Mon Sep 17 00:00:00 2001 From: Athan Date: Sun, 2 Nov 2025 16:47:55 -0800 Subject: [PATCH 3/3] chore: clean-up Signed-off-by: Athan --- .../math/base/special/round/package.json | 23 +++++++++---------- 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/round/package.json b/lib/node_modules/@stdlib/math/base/special/round/package.json index be0be4fdb2a5..d315d56773bd 100644 --- a/lib/node_modules/@stdlib/math/base/special/round/package.json +++ b/lib/node_modules/@stdlib/math/base/special/round/package.json @@ -94,25 +94,25 @@ ] }, "example_values": [ + -10.2, + 11.3, + -12.4, + 3.5, + -1.6, 64, - 27, + 27.2, 0, 0.1, -9, - 8, + 8.1, -1, 125, - -10.2, - 11.3, - -12.4, - 3.5, - -1.6, 15.7, - -16, + -16.5, 17.9, - -188, + -188.7, 19.11, - -200, + -200.1, 21.15 ] } @@ -130,8 +130,7 @@ "keywords": [ "round", "integer", - "nearest", - "number" + "nearest" ], "extra_keywords": [ "math.round"