pike.ida.liu.se
Search for
Home > Docs > Pike reference

[Top]

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()

Module reference for Pike v7.8 release 116, 2008-12-31