HomeManualTopicsTypesSymbols
std::min_max
returns the smaller and the larger of its two arguments
Parameters
- first_value
- the first argument
- second_value
- the second argument
Results
- min
- the smaller of the arguments
- max
- the larger of the arguments
Example
$a 47
$b 11
min_max &a &b
println! "min: " a
println! "max: " b
Output
min: 11
max: 47
Topic
Math
See also
std::min |
returns the smallest of its (potentially) many arguments |
std::max |
returns the largest of its (potentially) many arguments |