From 23bc3f059b087162432a823880dfe289a97eee6a Mon Sep 17 00:00:00 2001 From: siddiqui irshad Date: Mon, 26 Oct 2026 21:12:52 +0530 Subject: [PATCH 1/2] docs(querying): correct ceil, floor, and round return type to float --- pages/querying/functions.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/querying/functions.mdx b/pages/querying/functions.mdx index b230767ca..ac88f73c7 100644 --- a/pages/querying/functions.mdx +++ b/pages/querying/functions.mdx @@ -134,16 +134,16 @@ This section contains the list of supported functions. | `asin` | `asin(number: integer\|float) -> (float)` | Calculates the arcsine of a number between -1 and 1 in radians. | | `atan` | `atan(number: integer\|float) -> (float)` | Calculates the arctangent of a given number in radians. | | `atan2` | `atan2(y: integer\|float, x: integer\|float) -> (float)` | Calculates a unique arctangent value from a set of coordinates in radians. | - | `ceil` | `ceil(number: float) -> (integer)` | Returns the smallest integer greater than or equal to the given float number. | + | `ceil` | `ceil(number: float) -> (float)` | Returns the smallest integer greater than or equal to the given float number. | | `cos` | `cos(number: integer\|float) -> (float)` | Calculates the cosine of an angle specified in radians. | | `e` | `e() -> (float)` | Returns the base of the natural logarithm (2.71828).. | | `exp` | `exp(number: integer\|float) -> (float)` | Calculates `e^n` where `e` is the base of the natural logarithm, and `n` is the given number. | - | `floor` | `floor(number: float) -> (integer)` | Returns the largest integer smaller than or equal to the given float number. | + | `floor` | `floor(number: float) -> (float)` | Returns the largest integer smaller than or equal to the given float number. | | `log` | `log(number: integer\|float) -> (float)` | Calculates the natural logarithm of a given number. | | `log10` | `log10(number: integer\|float) -> (float)` | Calculates the logarithm (base 10) of a given number. | | `pi` | `pi() -> (float)` | Returns the constant *pi* (3.14159). | | `rand` | `rand() -> (float)` | Returns a random floating point number between 0 (inclusive) and 1 (exclusive). | - | `round` | `round(number: float) -> (integer)` | Returns the number, rounded to the nearest integer. Tie-breaking is done using the *commercial rounding*, where -1.5 produces -2 and 1.5 produces 2. | + | `round` | `round(number: float) -> (float)` | Returns the number, rounded to the nearest integer. Tie-breaking is done using the *commercial rounding*, where -1.5 produces -2 and 1.5 produces 2. | | `sign` | `sign(number: integer\| float) -> (integer)` | Applies the signum function to a given number and returns the result. The signum of positive numbers is 1, of negative -1 and for 0 returns 0. | | `sin` | `sin(number: integer\|float) -> (float)` | Calculates the sine of an angle specified in radians. | | `sqrt` | `sqrt(number: integer\|float) -> (float)` | Calculates the square root of a given number. | From 39c8bf1d4ac318766a5b018d4338917f4706eaea Mon Sep 17 00:00:00 2001 From: siddiqui irshad Date: Wed, 28 Oct 2026 00:24:17 +0530 Subject: [PATCH 2/2] docs(querying): update ceil, floor, and round input types to integer|float --- pages/querying/functions.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/querying/functions.mdx b/pages/querying/functions.mdx index ac88f73c7..c92468ed8 100644 --- a/pages/querying/functions.mdx +++ b/pages/querying/functions.mdx @@ -134,16 +134,16 @@ This section contains the list of supported functions. | `asin` | `asin(number: integer\|float) -> (float)` | Calculates the arcsine of a number between -1 and 1 in radians. | | `atan` | `atan(number: integer\|float) -> (float)` | Calculates the arctangent of a given number in radians. | | `atan2` | `atan2(y: integer\|float, x: integer\|float) -> (float)` | Calculates a unique arctangent value from a set of coordinates in radians. | - | `ceil` | `ceil(number: float) -> (float)` | Returns the smallest integer greater than or equal to the given float number. | + | `ceil` | `ceil(number: integer\|float) -> (float)` | Returns the smallest integer greater than or equal to the given float number. | | `cos` | `cos(number: integer\|float) -> (float)` | Calculates the cosine of an angle specified in radians. | | `e` | `e() -> (float)` | Returns the base of the natural logarithm (2.71828).. | | `exp` | `exp(number: integer\|float) -> (float)` | Calculates `e^n` where `e` is the base of the natural logarithm, and `n` is the given number. | - | `floor` | `floor(number: float) -> (float)` | Returns the largest integer smaller than or equal to the given float number. | + | `floor` | `floor(number: integer\|float) -> (float)` | Returns the largest integer smaller than or equal to the given float number. | | `log` | `log(number: integer\|float) -> (float)` | Calculates the natural logarithm of a given number. | | `log10` | `log10(number: integer\|float) -> (float)` | Calculates the logarithm (base 10) of a given number. | | `pi` | `pi() -> (float)` | Returns the constant *pi* (3.14159). | | `rand` | `rand() -> (float)` | Returns a random floating point number between 0 (inclusive) and 1 (exclusive). | - | `round` | `round(number: float) -> (float)` | Returns the number, rounded to the nearest integer. Tie-breaking is done using the *commercial rounding*, where -1.5 produces -2 and 1.5 produces 2. | + | `round` | `round(number: integer\|float) -> (float)` | Returns the number, rounded to the nearest integer. Tie-breaking is done using the *commercial rounding*, where -1.5 produces -2 and 1.5 produces 2. | | `sign` | `sign(number: integer\| float) -> (integer)` | Applies the signum function to a given number and returns the result. The signum of positive numbers is 1, of negative -1 and for 0 returns 0. | | `sin` | `sin(number: integer\|float) -> (float)` | Calculates the sine of an angle specified in radians. | | `sqrt` | `sqrt(number: integer\|float) -> (float)` | Calculates the square root of a given number. |