From ac3179460091dc0e182bd884c09ba0fc41bb212c Mon Sep 17 00:00:00 2001 From: tequ Date: Sat, 22 Nov 2025 23:51:50 +0900 Subject: [PATCH] fix `float_compare` parameters --- src/content/docs/docs/hooks/functions/float/float_compare.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/docs/hooks/functions/float/float_compare.mdx b/src/content/docs/docs/hooks/functions/float/float_compare.mdx index 912545c..b68a249 100644 --- a/src/content/docs/docs/hooks/functions/float/float_compare.mdx +++ b/src/content/docs/docs/hooks/functions/float/float_compare.mdx @@ -86,7 +86,7 @@ if (float_compare(pusd_to_send, 0n, COMPARE_LESS) == 1) | ------ | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | float1 | int64_t | An XFL floating point enclosing number representing the first operand to the comparison | | float2 | int64_t | An XFL floating point enclosing number representing the second operand to the comparison | -| mode | uint32_t | A bit-flag field consisting of any of (or any logically valid combination of) the following flags:
COMPARE_LESS
COMPARE_EQUAL
COMPARE_GREATER

Valid combinations are:
COMPARE_LESS | COMPARE_GREATER
- Not equal

COMPARE_LESS | COMPARE_EQUAL
- Less than or equal to

COMPARE_GREATER | COMPARE_EQUAL
- Greater than or equal to | +| mode | uint32_t | A bit-flag field consisting of any of (or any logically valid combination of) the following flags:
COMPARE_EQUAL `1`
COMPARE_LESS `2`
COMPARE_GREATER `4`

Valid combinations are:
COMPARE_LESS \| COMPARE_GREATER
- Not equal

COMPARE_LESS \| COMPARE_EQUAL
- Less than or equal to

COMPARE_GREATER \| COMPARE_EQUAL
- Greater than or equal to |