max<T extends num> static method

T max<T extends num>(
  1. T a,
  2. T b
)

Return highest of two values

Implementation

static T max<T extends num>(T a, T b)
{
  if (a > b) {
    return a;
  }
  else {
    return b;
  }
}