The invmuldbl() function
The invmuldbl() function multiplies an interval value by a numeric value.
Syntax
mint invmuldbl(iv, num, ov)
intrvl_t *iv;
double num;
intrvl_t *ov;
- iv
- A pointer to the interval value to multiply.
- num
- The numeric double value.
- ov
- A pointer to an interval variable with a valid qualifier, to contain the result of the multiplication.
Usage
The invmuldbl() function multiplies the interval value in iv by num and stores the result in ov. The value in num 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 the qualifier for ov is different from the qualifier for iv (but of the same class), the invmuldbl() function extends the result (as the invextend() function defines).
Return values
- 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
- Aninterval value is incompatible with the operation.
- -1268
- A parameter contains an invalid interval qualifier.