Number30
Constructors
Guards
Instances
Math
clampconstRestricts the given number to be within the range specified by the minimum and maximum values.decrementconstDecrements a number by 1.divideconstDivides numbers safely, returning Option.none() if the divisor is 0.divideUnsafeconstDivides two number values without returning an Option.incrementconstReturns the result of adding 1 to a given number.maxconstReturns the maximum between two numbers.minconstReturns the minimum between two numbers.multiplyconstProvides a multiplication operation on numbers.multiplyAllconstTakes an Iterable of numbers and returns their multiplication as a single number.nextPow2constReturns the next power of 2 from the given number.ReducerMaxconstReducer for reducing numbers by keeping the maximum value.ReducerMinconstReducer for reducing numbers by keeping the minimum value.ReducerMultiplyconstReducer for combining numbers using multiplication.ReducerSumconstReducer for combining numbers using addition.remainderconstReturns the remainder left over when one operand is divided by a second operand, always taking the sign of the dividend.roundconstReturns the number rounded with the given precision.signconstDetermines the sign of a given number.subtractconstProvides a subtraction operation on numbers.sumconstProvides an addition operation on numbers.sumAllconstTakes an Iterable of numbers and returns their sum as a single number.Predicates
betweenconstChecks whether a number is between a minimum and maximum value (inclusive).isGreaterThanconstReturns true if the first argument is greater than the second, otherwise false.isGreaterThanOrEqualToconstReturns a function that checks if a given number is greater than or equal to the provided one.isLessThanconstReturns true if the first argument is less than the second, otherwise false.isLessThanOrEqualToconstReturns a function that checks if a given number is less than or equal to the provided one.