Difference between revisions of "SHIP:Sail:min"

From Serious Documentation
Jump to: navigation, search
Line 6: Line 6:
  
 
== min ==
 
== min ==
<onlyinclude>Gets the minimum value of two or more numbers.</onlyinclude>
+
<includonly>Gets the minimum value of two or more numbers.</includonly>
  
 
== Prototype ==
 
== Prototype ==

Revision as of 05:04, 22 June 2014

See Also:

min

<includonly>Gets the minimum value of two or more numbers.</includonly>

Prototype

Integer min(Integer n1, Integer n2);

Integer min(Integer n1, Integer n2, Integer n3);

Parameters/Return Value

Parameter Data Type Description
n1 Integer The first of a set of numbers to find the minimum of
n2 Integer The second of a set of numbers to find the minimum of
n3 Integer The third of a set of numbers to find the minimum of
Return Integer the minimum of the supplied numbers.

Detailed Description

The min() function returns the minimum value of the set of specified numbers.

Examples

Example Result Notes
min(-5,-6); -6
min(-5, 2, 12); -5
min(0, 6, 5); 0