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

decsub()

The decsub() function subtracts two decimal type values.

Syntax

Usage

The difference 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.

Example

The file decsub.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