Returns the minimum value of the passed two value arguments. That means, it compares the two passed values with each other and returns the one which is smaller.
min(??number1??,??number2??)
Argument Name | Data Type | Description |
---|---|---|
??number1?? |
Integer Number | One of the two numbers to compare with. [required] |
??number2?? |
Integer Number | One of the two numbers to compare with. [required] |
Description | Data Type |
---|---|
Smallest number of the passed two values. | Integer Number |
The following example prints the result of some example argument values to the terminal as soon as the script is loaded.
on init
message("min(2,3) = " & min(2,3))
message("min(1,11) = " & min(1,11))
message("min(-30,4) = " & min(-30,4))
end on
Since LinuxSampler 2.0.0.svn23.