between method

bool between(
  1. double min,
  2. double max
)

Whether this double is in min..max (inclusive).

Implementation

bool between(double min, double max) => this >= min && this <= max;