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

dectodbl()

The dectodbl() function converts a decimal type number into a C double type number.

Syntax

Usage

The floating-point format of the host computer can result in loss of precision in the conversion of a decimal type number to a double type number.

Return Codes

0 The conversion was successful.
<0 The conversion failed.

Example

The file dectodbl.ec file 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