DbiBcdToFloat

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

DbiBcdToFloat

Return to chapter overview

C syntax

DBIResult DBIFN DbiBcdToFloat (pBcd, piVal);

Delphi syntax

function DbiBcdToFloat (var Bcd: FMTBcd; var iVal: Double): DBIResult stdcall;

Description

DbiBcdToFloat converts a number in the BDE logical binary coded decimal (BCD) format to the BDE FLOAT format.

Parameters

pBcd

Type: pFMTBcd

(Input)

Pointer to a FMTBcd structure that specifies the binary coded decimal (BCD) data to convert.

piVal

Type: pDFLOAT

(Output)

Pointer to the client buffer that receives the FLOAT number.

Usage

Due to a lack of high precision support for floating point values on the Intel platform, using the functions DbiBcdFromFloat and DbiBcdToFloat to convert values with more than 14 significant digits is not recommended. To convert high precision values on the Intel platform, develop a manual conversion routine that uses the information in the FMTBcd structure.

See Also

DbiBcdFromFloat