mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-24 00:47:57 -05:00
- remove en_US postfix - remove translated files (translation were moved to ts files earlier) - remove unused jQuery (python help doesn't use it anymore) - change expression label in QgsQueryBuilder and add context help (partly fixes #8129)
20 lines
858 B
Plaintext
20 lines
858 B
Plaintext
<h3>clamp() function</h3>
|
|
Restricts an input value to a specified range.
|
|
|
|
<p><h4>Syntax</h4>
|
|
clamp(<i>minimum</i>,<i>input</i>,<i>maximum</i>)</p>
|
|
|
|
<p><h4>Arguments</h4>
|
|
<!-- List args for functions here-->
|
|
<i> minimum</i> → The smallest value <i>input</i> is allowed to take.<br>
|
|
<i> input</i> → a value which will be restricted to the range specified by <i>minimum</i> and <i>maximum</i>.<br>
|
|
<i> maximum</i> → The largest value <i>input</i> is allowed to take.<br>
|
|
|
|
<h4>Example</h4>
|
|
<!-- Show example of function.-->
|
|
clamp(1,5,10) → 5 (<i>input</i> is between 1 and 10 so is returned unchanged)<br>
|
|
clamp(1,0,10) → 1 (<i>input</i> is less than minimum value of 1, so function returns 1)<br>
|
|
clamp(1,11,10) → 10 (<i>input</i> is greater than maximum value of 10, so function returns 11)<br>
|
|
|
|
|