Mau.Filters.Math (mau v0.8.0)

View Source

Mathematical operation filters.

Summary

Functions

Returns the absolute value of a number.

Adds a number to the value.

Rounds a number up to the nearest integer.

Clamps a number between a minimum and maximum value.

Returns the integer quotient of dividing dividend by divisor.

Rounds a number down to the nearest integer.

Returns the maximum value from a list or compares with another value.

Returns the minimum value from a list or compares with another value.

Returns the remainder of integer division.

Multiplies the value by a number.

Raises a number to the specified power.

Rounds a number to the nearest integer or specified decimal places.

Returns the filter specification for this module.

Returns the square root of a number.

Subtracts a number from the value.

Truncates a number toward zero, removing the decimal part.

Functions

abs(value, args)

Returns the absolute value of a number.

add(value, arg2)

Adds a number to the value.

ceil(value, args)

Rounds a number up to the nearest integer.

clamp(value, args)

Clamps a number between a minimum and maximum value.

div(dividend, arg2)

Returns the integer quotient of dividing dividend by divisor.

floor(value, args)

Rounds a number down to the nearest integer.

max_value(value, args)

Returns the maximum value from a list or compares with another value.

min_value(value, args)

Returns the minimum value from a list or compares with another value.

mod(value, args)

Returns the remainder of integer division.

mul(value, arg2)

Multiplies the value by a number.

power(value, args)

Raises a number to the specified power.

round(value, args)

Rounds a number to the nearest integer or specified decimal places.

spec()

Returns the filter specification for this module.

sqrt(value, args)

Returns the square root of a number.

sub(value, arg2)

Subtracts a number from the value.

trunc(value, args)

Truncates a number toward zero, removing the decimal part.