invmuldbl()

Multiplies an interval value by a numeric value.

Syntax

mint invmuldbl(intrvl_t *iv, double dbl, intrvl_t *ov);
  1. iv is a pointer to the interval variable to multiply.
  2. dbl is the numeric double value, which can be a positive or negative number.
  3. ov is a pointer to the resulting interval variable containing a valid qualifier.
  4. Both iv and ov 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 multiplication was successful.
<0 The multiplication 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.