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

dectolong()

The dectolong() function converts a decimal type number into an int4 type number.

Syntax

Return Codes

0 The conversion was successful.
-1200 The magnitude of the decimal type number is greater than 2,147,483,647.

Example

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