invdivdbl()

Divides an interval value by a numeric value.

Syntax

mint invdivdbl(intrvl_t *iv, double dbl, intrvl_t *ov);
  1. iv is a pointer to an initialized interval variable to be divided.
  2. dbl is a numeric divisor value, which can be a positive or negative number.
  3. ov is a pointer to an interval variable with a valid qualifier in the year to month class or the day to fraction(5) class.
  4. Both the iv and ov qualifiers must belong to the same qualifier class

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).
-1202 The dbl parameter is zero (0).