contains method

bool contains(
  1. num value
)

Contains, containing bounds. Inclusive.

Implementation

bool contains(num value)
{
  return value.toDouble() >= minValue.toDouble() && value.toDouble() <= maxValue.toDouble();
}