Informix DataBlade API Programmer's Manual
DataBlade API Function Descriptions
deccmp()
The
deccmp()
function compares two
decimal
type numbers.
Syntax
mint deccmp(
n1
,
n2
)
dec_t *n1;
dec_t *n2;
n1
is a pointer to a
decimal
structure of the first number to compare.
n2
is a pointer to a
decimal
structure of the second number to compare.
Return Codes
-1
The first value is less than the second value.
0
The two values are identical.
1
The first value is greater than the second value.
DECUNKNOWN
Either value is null.
Informix DataBlade API Programmer's Manual
, Version 9.2
Copyright © 1999, Informix Software, Inc. All rights reserved