OperatorExtension extension

Num conversion operator extensions

on

Properties

factorial int

Available on num, provided by the OperatorExtension extension

Calculates the factorial of the integer.
no setter

Methods

power(num exponent) num

Available on num, provided by the OperatorExtension extension

Raises the current number to the power of exponent.
rangeTo(num other) List<num>

Available on num, provided by the OperatorExtension extension

Generates a list of numbers from the current number to other, inclusive.
sumTo(num other) num

Available on num, provided by the OperatorExtension extension

Calculates the sum of all numbers in the range from the current number to other, inclusive.