quotient (Division)

See also: calc (Calculate expression)

The $quotient function forms the quotient of the first parameter and the other parameters. The parameters can either be a fixed numerical value or a function that returns a numerical value. The number of parameters is arbitrary for this function.

Syntax

$quotient(dividend, divisor[, ...])

Parameter

Name

Description

dividend

Dividend of the quotient, a value (e.g. '5'), a list (e.g. $el(3,true)) or a reference to a value (e.g. $el(3)).

divisor

Divisor(s) of the quotient, also a value, a list, or a reference.

...

Other divisors.

Return value

The result of the quotient as numerical value.

Example

Value from the field with element ID 12 divided by 1.16:

$quotient( $el(12), 1.16)


Value from the field with element id 101: Value from the field with element id 102:

$quotient( $el(101), $el(102) )


Quotients of the values from the repeating element with the element id 26:

$quotient( $el(26, true) )