Error getting tags :
error 404Error getting tags :
error 404 min | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
min
Basics
Expander triangle
Type
Function
Syntax
min(numbersList)
Introduced
1.0
Changed
1.1
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Returns the smallest number of a list of numbers.
Examples

min(12,3,8,7) -- returns 3
min(0,8,-436) -- returns -436

Additional Comments
Expander triangle

Use the min function to find the lowest value in a group of values.

Parameters:

The numbersList is a comma-separated list of numbers, or an expression that evaluates to such a list, or an array containing only numbers.

Value:

The min function returns a number.

Comments:

You can use the min and max functions together to limit a value to a certain range. For example, the expression

min(1,max(myValue,0))

yields a number between zero and 1. If myValue is within the limits, the expression is equal to myValue; if it is greater than 1, the expression evaluates to 1; and if it is less than zero, the expression evaluates to zero.

If the numbersList is empty, the min function returns zero.

Changes to Revolution:

The ability to use an array was introduced in version 1.1. In previous versions, only lists of numbers could be used with the min function.

User Comments
Expander triangle