contains method

bool contains(
  1. double value
)

Implementation

bool contains(double value) {
  return value >= start && value <= end;
}