11 lines
224 B
MonkeyC
11 lines
224 B
MonkeyC
import Toybox.Lang;
|
|
|
|
typedef Numeric as Number or Float or Long or Double;
|
|
|
|
function min(left as Numeric, right as Numeric) as Numeric {
|
|
if (left < right) {
|
|
return left;
|
|
} else {
|
|
return right;
|
|
}
|
|
} |