rfc:clamp
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rfc:clamp [2021/07/03 13:50] – Added announcement thread thinkverse | rfc:clamp [2023/06/12 13:59] (current) – withdrawn thinkverse | ||
---|---|---|---|
Line 3: | Line 3: | ||
* Date: 2021-06-23 | * Date: 2021-06-23 | ||
* Author: Kim Hallberg, hallbergkim@gmail.com | * Author: Kim Hallberg, hallbergkim@gmail.com | ||
- | * Status: | + | * Status: |
- | * Proposed Version: PHP 8.1 | + | * Proposed Version: PHP 8.2 |
* First Published at: http:// | * First Published at: http:// | ||
Line 33: | Line 33: | ||
clamp(num: 0, min: 2, max: 1); // clamp(): Argument #2 ($min) cannot be greater than Argument #3 ($max) | clamp(num: 0, min: 2, max: 1); // clamp(): Argument #2 ($min) cannot be greater than Argument #3 ($max) | ||
</ | </ | ||
+ | |||
+ | Handling NAN; passing NAN to either of the range values will throw above '' | ||
===== Backward Incompatible Changes ===== | ===== Backward Incompatible Changes ===== | ||
Line 54: | Line 56: | ||
===== Open Issues ===== | ===== Open Issues ===== | ||
- | No open issues as of yet. | + | 1) Handling |
===== Proposed Voting Choices ===== | ===== Proposed Voting Choices ===== |
rfc/clamp.1625320206.txt.gz · Last modified: 2021/07/03 13:50 by thinkverse