maximum method

double maximum(
  1. num maximum
)

Implementation

double maximum(num maximum) => min(toDouble(), maximum.toDouble());