Data.FmtBcd.BcdToDouble

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: function
Visibility: public
Source:
Data.FmtBcd.pas
Data.FMTBcd.hpp
Unit: Data.FmtBcd
Parent: Data.FmtBcd

Delphi

function BcdToDouble(const Bcd: TBcd): Double;

C++

extern DELPHI_PACKAGE double __fastcall BcdToDouble(const TBcd &Bcd);

Description

Converts a binary-coded decimal value (BCD) to the corresponding double precision floating point value.

Use BcdToDouble to convert a binary-coded decimal value into a double precision floating point value. If the Bcd parameter represents a value that can't be expressed in double precision, BcdToDouble raises an exception.

See Also