Show: Object Pascal C++
Display Preferences

BCD Support Routines

From Appmethod Topics
Jump to: navigation, search

Go Up to API Categories Index

This topic lists the BCD (binary-coded decimal) support routines defined in the Object Pascal RTL.

Routine Description

Data.FmtBcd.BCDToCurr

Converts a binary-coded decimal value (BCD) to the corresponding Currency value.

Data.FmtBcd.BcdAdd

Adds two FMTBcd.TBcd values.

Data.FmtBcd.BcdCompare

Compares two FMTBcd.TBcd values.

Data.FmtBcd.BcdDivide

Divides one BCD value by another.

Data.FmtBcd.BcdMultiply

Multiplies two BCD values.

Data.FmtBcd.BcdPrecision

Returns the precision of a binary-coded decimal (BCD) value.

Data.FmtBcd.BcdScale

Returns the number of decimal places for a binary-coded decimal (BCD) value.

Data.FmtBcd.BcdSubtract

Subtracts one BCD value from another.

Data.FmtBcd.BcdToDouble

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

Data.FmtBcd.BcdToInteger

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

Data.FmtBcd.BcdToStr

Returns a string representation of a binary-coded decimal (BCD) value.

Data.FmtBcd.BcdToStrF

Returns a string representation of a binary-coded decimal (BCD) value that reflects specified formatting.

Data.FmtBcd.CurrToBCD

Converts a Currency value to the corresponding binary-coded decimal (BCD) value.

Data.FmtBcd.DoubleToBcd

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

Data.FmtBcd.FormatBcd

Returns a string representation of a binary-coded decimal (BCD) value that reflects specified formatting.

Data.FmtBcd.IntegerToBcd

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

Data.FmtBcd.IsBcdNegative

Indicates whether a binary-coded decimal (BCD) value is less than 0.

Data.FmtBcd.NormalizeBcd

Converts a BCD value into another BCD value with a specified precision and number of decimals.

Data.FmtBcd.NullBcd

Represents a NULL FMTBcd.TBcd value.

Data.FmtBcd.StrToBcd

Converts a string to the corresponding binary-coded decimal (BCD) value.

Data.FmtBcd.TryStrToBcd

Converts a string to the corresponding binary-coded decimal (BCD) value.

Data.FmtBcd.VarFMTBcd

Returns the TVarType constant that identifies the internal type of a Variant as a FMTBcd.TBcd value.

Data.FmtBcd.VarFMTBcdCreate

Creates a new Variant that stores its value internally as a FMTBcd.TBcd value.

Data.FmtBcd.VarIsFMTBcd

Indicates whether a specified Variant represents a FMTBcd.TBcd value.

Data.FmtBcd.VarToBcd

Converts a Variant into a FMTBcd.TBcd type.



See Also

Personal tools
In other languages