limit Function

Limits the sepcified value to within the minimum and maximum boundries.

Summary

ElementFunction
ReturnsNumber

Arguments

valNumber[required] Value to limit if necesary.
minNumberMinimum boundry of the value.
maxNumberMaximum boundry of the value. (default) 9

Example

nano.limit(foo, 100, 250);