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 - min() return the smaller of two numbers http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 min()               Return the smaller of two numbers
------------------------------------------------------------------------------
 Declaration
   math.hdr

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

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

 Return
   The smaller of the two passed values.

 Description
   The min() function returns the smaller of the two passed numerics.
   If eNumber1 < eNumber2, min() returns eNumber1, else eNumber2 will be
   returned.

 Example
   #define EXAMPLE_MATH
   #include example.hdr

   proc Test_min
   ? min( 0, 1 )       // prints 0
   ? min( 1, 0 )       // prints 0
   ? min( 1, 2 )       // prints 1
   endproc

   proc main
   Test_min()
   endproc

See Also: max()

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