![]() |
|
Navigation |
Synopsis Determine the largest of two numeric values.
Function
&T <: num max(&T <: num N, &T <: num M)
Usage
import util::Math;
Description The largest of two numbers. The type of the result is the same as the type of the largest argument.
Examples
rascal>import util::Math; ok rascal>max(12, 13); int: 13 rascal>max(12, 13.5); num: 13.5 rascal>max(12, 11.5); num: 12 Questions
Question [1].
![]() ![]()
Question [2].
![]() ![]()
Question [3].
![]() ![]()
Question [4].
![]() ![]()
Question [5].
![]() ![]() ![]() |