Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - max() return the greater of two numbers http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 max()               Return the greater of two numbers
------------------------------------------------------------------------------
 Declaration
   math.hdr

 Syntax
   func dbl max extern
   param value dbl eNumber1, ;
         value dbl eNumber2

 Arguments
   eNumber1 is a numeric expression.
   eNumber2 is a numeric expression.

 Return
   The greater of the two passed values.

 Description
   The max() function returns the greater of the two passed numerics.
   If eNumber1 >= eNumber2, max() returns eNumber1, else eNumber2 will be
   returned.

 Example
   #define EXAMPLE_MATH
   #include example.hdr

   proc Test_max
   ? max( 0, 1 )       // prints 1
   ? max( 1, 0 )       // prints 1
   ? max( 1, 2 )       // prints 2
   endproc

   proc main
   Test_max()
   endproc

See Also: min()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson