clamp abstract method

Number clamp(
  1. dynamic lowerLimit,
  2. dynamic upperLimit
)

Returns this num clamped to be in the range lowerLimit-upperLimit. The comparison is done using compareTo and therefore takes -0.0 into account. This also implies that double.NAN is treated as the maximal double value. lowerLimit and upperLimit are expected to be num or `Number' objects.

Implementation

Number clamp(dynamic lowerLimit, dynamic upperLimit);