The invdivinv() function
The invdivinv() function divides an interval value by another interval value.
Syntax
mint invdivinv(i1, i2, num)
intrvl_t *i1, *i2;
double *num;
- i1
- A pointer to the interval value that is the dividend.
- i2®
- A pointer to the interval value that is the divisor.
- num
- A pointer to a double variable to contain the quotient.
Usage
The invdivinv() function divides the interval value in i1 by i2 and stores the result in num. The result can be either positive or negative.
Both the input and output qualifiers must belong to the same interval class: either the year to month class or the day to fraction(5) class. If necessary, the invdivinv() function extends the interval value in i2 to match the qualifier for i1 before the division.
Return values
- 0
- The division was successful.
- <0
- The division failed.
- -1200
- A numeric value is too large (in magnitude).
- -1201
- A numeric value is too small (in magnitude).
- -1266
- An interval value is incompatible with the operation.
- -1268
- A parameter contains an invalid interval qualifier.