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; } }