From ed81b165ebb6eba5369d0677ef98429ac2d9a6c9 Mon Sep 17 00:00:00 2001 From: George Marques Date: Fri, 24 Feb 2023 13:43:55 -0300 Subject: Make max() and min() global functions only accept numbers The behavior for those are not well defined for non-numeric arguments. To avoid confusion the other types are forbidden. --- doc/classes/@GlobalScope.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/classes') diff --git a/doc/classes/@GlobalScope.xml b/doc/classes/@GlobalScope.xml index ed7bdc07fc..3bda3a3896 100644 --- a/doc/classes/@GlobalScope.xml +++ b/doc/classes/@GlobalScope.xml @@ -656,7 +656,7 @@ - Returns the maximum of the given values. This function can take any number of arguments. + Returns the maximum of the given numeric values. This function can take any number of arguments. [codeblock] max(1, 7, 3, -6, 5) # Returns 7 [/codeblock] @@ -689,7 +689,7 @@ - Returns the minimum of the given values. This function can take any number of arguments. + Returns the minimum of the given numeric values. This function can take any number of arguments. [codeblock] min(1, 7, 3, -6, 5) # Returns -6 [/codeblock] -- cgit v1.2.3