![]() |
|
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].
![]() ![]()
Question [2].
![]() ![]()
Question [3].
![]() ![]()
Question [4].
![]() ![]() ![]() |