Data.FmtBcd.BcdToInteger

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function BcdToInteger(const Bcd: TBcd; Truncate: Boolean = False): Integer;

C++

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

Properties

Type Visibility Source Unit Parent
function public
Data.FmtBcd.pas
Data.FMTBcd.hpp
Data.FmtBcd Data.FmtBcd

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