Start Back Next End
  
ZBasic System Library
183
ZBasic Microcontrollers
Max
Type
Function (see discussion for the return type)
Invocation
Max(val1, val2) 
Parameter
Method
Type
Description
val1
ByVal
numeric
One of two values of which the largest is desired.
val2
ByVal
numeric
One of two values of which the largest is desired.
Discussion
This function returns the larger of the two supplied values, both of which must be of the same type.  If the
supplied values are signed, the determination of which is largest takes the sign of the values into account. 
The return value is the same type as the parameters.
Compatibility
This function is not available in BasicX compatibility mode.
See Also
Previous page Top Next page