Max
From REALbasicWiki
Contents |
[edit] Prototype
Function Max( value1 as Double, value2 as Double[, ...Optional valueN as Double] ) as Double
[edit] Description
Max returns the greatest of two or more doubles passed to it.
[edit] Discussion
Prior to RB 2005 Release 1, Max only accepted exactly two values.
[edit] Sample Code
In this bit of sample code, Max returns 9.
MsgBox str( Max( 3, 8, 9, 1 ) )
