>Hi all,
>
>How can I write a function (as the min or max functions) with undefined number of parameters?
>
>Thanks for any help
To calculate max/min I use the approach that you may find useful. I use one parameter only preformatted as string having delimiters to separate numbers, like:
?ymax("3,4,5,6,7,8,9")
Then in ymax function I format them as needed to use the regular max() function.
Additional advantage of this approach is that you can use this function independently, say, in bat file when only characters are recognized as parameters.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only