invdivinv()

Divides one interval value by another.

Syntax

mint invdivinv(intrvl_t *i1, intrvl_t *i2, double *res);
  1. i1 is a pointer to an initialized interval variable that is the dividend.
  2. i2® is a pointer to an initialized interval variable that is the divisor.
  3. res is a pointer to the double value that is the quotient.
  4. The qualifiers for i1 and i2 must belong to the same interval class, either year to month or day to fraction(5).

Returns

Table 1. Return codes
Code Description
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.