math

Functions

intranet.apps.templatetags.math.divide(dividend, divisor)[source]

Returns the quotient of the arguments as a float.

intranet.apps.templatetags.math.maximum(num1, num2)[source]

Returns smaller of two numbers.

intranet.apps.templatetags.math.minimum(num1, num2)[source]

Returns smaller of two numbers.

intranet.apps.templatetags.math.multiply(num1, num2)[source]

Returns the product of the arguments.

intranet.apps.templatetags.math.round_num(number, precision=0)[source]

Rounds a number to a given precision in decimal digits (default 0 digits) and returns the integer value.

Precision may be negative. A precision of 1 will round to the tenths place and a precision of -1 will round to the tens place.

Returns: Float

intranet.apps.templatetags.math.to_int(num)[source]

Converts a number to an integer.