Skip to content

math

Module

Contains functions and filters to work with math.

Exports

ceiling Rounds a number up to the nearest integer.
floor Rounds a number down to the nearest integer.
modulo Returns the remainder of the division of the left value by the right value.
round Rounds a number to the given decimal.
roundAwayFromZero Rounds a number to the given decimal.