Navigation
Synopsis Determine the smallest of two numeric values.
Function &T <: num min(&T <: num N, &T <: num M)
Usage import util::Math;
Description The smallest of two numbers. The type of the result is the same as the type of the smallest argument.
Examples
rascal>import util::Math;
ok
rascal>min(12, 13);
int: 12
rascal>min(12, -13);
int: -13
rascal>min(3.14, 4);
num: 3.14

Questions
Question [1].
The type of min(19, -12) is

Question [2].
The type of min(6, 8.4997063130844480) is

Question [3].
The type of min(-15.00316429680389240, 14.8123365499033000) is

Question [4].
min(-4.8900331560348720, -9.84798655771518920) == 



Is this page unclear, or have you spotted an error? Please add a comment below and help us to improve it. For all other questions and remarks, visit ask.rascal-mpl.org.