Number
Noir.Libraries.Number: NoirLibrary
A library containing helper methods relating to numbers.
Returns whether or not the provided number is between the two provided values.
Parameters
number
: numberstart
: numberstop
: number
Returns
boolean
Clamps a number between two values.
Parameters
number
: numbermin
: numbermax
: number
Returns
number
Rounds the number to the provided number of decimal places (defaults to 0).
Parameters
number
: numberdecimalPlaces
: number|nil
Returns
number
Returns whether or not the provided number is an integer.
Parameters
number
: number
Returns
boolean
Returns the average of the provided numbers.
Parameters
numbers
: table<integer, number>
Returns
number
Last updated