informix
Informix DataBlade API Programmer's Manual
DataBlade API Function Descriptions

invmuldbl()

The invmuldbl() function multiplies an interval value by a numeric value.

Syntax

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 Codes

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.


Informix DataBlade API Programmer's Manual, Version 9.2
Copyright © 1999, Informix Software, Inc. All rights reserved