Data.FmtBcd.BcdToInteger

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 BcdToInteger(const Bcd: TBcd; Truncate: Boolean = False): Integer;

C++

extern DELPHI_PACKAGE int __fastcall BcdToInteger(const TBcd &Bcd, bool Truncate = false);

Description

Converts a binary-coded decimal value (BCD) to an integer.

Use BcdToInteger to convert a binary-coded decimal value into an integer.

Bcd is the value to convert.

Truncate indicates how to handle values that include a decimal portion. If Truncate is true, BcdToInteger truncates the value specified by Bcd and converts only the integer portion. If Truncate is false, BcdToInteger raises an exception if the Bcd parameter does not represent an integer value.

See Also