Returns the lowest of the two arguments received.
1 math.min
<math.min>
<arg1 /> +
<arg2 /> +
</math.min>
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Earg1 | numeric | ||||
Earg2 | numeric |
Returns | |
---|---|
Type | Description |
double |
Exceptions
requires 2 arguments
It requires 2 arguments.
numeric type required
Incorrect numeric argument.
bad numeric data
Incorrect numeric data type.
Example
Copy
<xsql-script name='min_sample1'> <body> <set name='arg1' type='decimal'>6.3</set> --> arg1 = 6.3 <set name='arg2' type='integer'>3</set> --> arg2 = 3 <println><math.min><arg1/><arg2/></math.min></println> --> min (6.3, 3) = 3.0 </body> </xsql-script>
Devuelve:
Copy
3
Example
Copy
<xsql-script name='min_sample2'> <body> <println><math.min><number>2</number>4</math.min></println> --> min (2, 4) = 2.0 </body> </xsql-script>
Returns:
Copy
2