informix
INFORMIX-ESQL/C Programmer's Manual
ESQL/C Function Library

deccmp()

The deccmp() function compares two decimal type numbers.

Syntax

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.

Example

The file deccmp.ec in the demo directory contains the following sample program.

Output


INFORMIX-ESQL/C Programmer's Manual, Version 9.21
Copyright © 1999, Informix Software, Inc. All rights reserved