Method limit() Method limit int|float|object limit(int|float|object minval, int|float|object x, int|float|object maxval) Description Limits the value x so that it's between minval and maxval. If x is an object, it must implement the lfun::`< method. See also max() and min()