min method

double min(
  1. double a,
  2. double b
)

Implementation

double min(double a, double b) => a < b ? a : b;