mirror of
https://github.com/TangentFoxy/lume.git
synced 2025-07-28 11:02:20 +00:00
Fixed incorrect description of lume.round()
This commit is contained in:
@@ -19,8 +19,8 @@ lume = require "lume"
|
|||||||
Returns the value `x` clamped between the values `min` and `max`
|
Returns the value `x` clamped between the values `min` and `max`
|
||||||
|
|
||||||
### lume.round(x)
|
### lume.round(x)
|
||||||
Rounds `x` to the nearest integer. Rounds towards zero if we're midway between
|
Rounds `x` to the nearest integer. Rounds away from zero if we're midway
|
||||||
two integers.
|
between two integers.
|
||||||
|
|
||||||
### lume.sign(x)
|
### lume.sign(x)
|
||||||
Returns `1` if `x` is 0 or above, returns `-1` when `x` is negative.
|
Returns `1` if `x` is 0 or above, returns `-1` when `x` is negative.
|
||||||
|
Reference in New Issue
Block a user