mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 16:41:07 +00:00
Update documentation for num.clamp.
(partially) fixes #27923 BUG= http://dartbug.com/27923 R=lrn@google.com Review URL: https://codereview.chromium.org/2541513002 .
This commit is contained in:
parent
0c31815f1c
commit
222d80ad9d
|
@ -296,6 +296,9 @@ abstract class num implements Comparable<num> {
|
||||||
* The comparison is done using [compareTo] and therefore takes `-0.0` into
|
* The comparison is done using [compareTo] and therefore takes `-0.0` into
|
||||||
* account. This also implies that [double.NAN] is treated as the maximal
|
* account. This also implies that [double.NAN] is treated as the maximal
|
||||||
* double value.
|
* double value.
|
||||||
|
*
|
||||||
|
* The arguments [lowerLimit] and [upperLimit] must form a valid range where
|
||||||
|
* `lowerLimit.compareTo(upperLimit) <= 0`.
|
||||||
*/
|
*/
|
||||||
num clamp(num lowerLimit, num upperLimit);
|
num clamp(num lowerLimit, num upperLimit);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue