Div

This function computes the integer division of two numbers.

Description

Integer division of two numbers.

Type

NUMERIC

Arguments

Type

Meaning

1

NUMERIC

the numerator

2

NUMERIC

the units to which to convert the numerator

3

NUMERIC

the denominator

4

NUMERIC

the units to which to convert the denominator

Evaluation

Converts numerator and denominator into the specified units, then returns the integral division of the converted values, where integral division of x and y is defined as:

 

 

Comments

If the denominator is equal to zero, this function aborts the run with an error.
Each of the units arguments must have units which are compatible with the value with which they are associated, otherwise the run is aborted with an error.

Note that this function does not use the scalar portion of either of the units arguments.

 
Div(10.5 "m", 0.0 "ft", 2.4 "sec", 0.0 "sec")
 
17.00 "0.304800 m/s"