Informix DataBlade API Programmer's Manual
DataBlade API Function Descriptions
decadd()
The
decadd()
function adds two
decimal
type values.
Syntax
mint decadd(
n1
,
n2
,
sum
)
dec_t *n1;
dec_t *n2;
dec_t *sum;
n1
is a pointer to the
decimal
structure of the first operand.
n2
is a pointer to the
decimal
structure of the second operand.
sum
is a pointer to the
decimal
structure that contains the sum (
n1
+
n2)
.
Usage
The
sum
can be the same as either
n1
or
n2
.
Return Codes
0
The operation was successful.
-1200
The operation resulted in overflow.
-1201
The operation resulted in underflow.
Informix DataBlade API Programmer's Manual
, Version 9.2
Copyright © 1999, Informix Software, Inc. All rights reserved