Data.FmtBcd
From RAD Studio API Documentation
Defines classes to support BCD (binary coded decimal) conversions, and a number of methods to support manipulation of BCD values.
| Package | dbrtl250.bpl |
|---|
Contents
Classes
EBcdException EBcdException is the exception class for errors that occur when working with BCD values.
EBcdOverflowException EBcdOverflowException is the exception class for errors that occur when a Variant can't create a BCD value due to the requested precision and number of decimals.
Routines
BcdCompare Compares two TBcd values.
BcdDivide Divides one BCD value by another.
BcdMultiply Multiplies two BCD values.
BcdPrecision Returns the precision of a binary-coded decimal (BCD) value.
BcdScale Returns the number of decimal places for a binary-coded decimal (BCD) value.
BcdSubtract Subtracts one BCD value from another.
BCDToCurr Converts a binary-coded decimal value (BCD) to the corresponding Currency value.
BcdToDouble Converts a binary-coded decimal value (BCD) to the corresponding double precision floating point value.
BcdToInteger Converts a binary-coded decimal value (BCD) to an integer.
BcdToStr Returns a string representation of a binary-coded decimal (BCD) value.
BcdToStrF Returns a string representation of a binary-coded decimal (BCD) value that reflects specified formatting.
CurrToBCD Converts a Currency value to the corresponding binary-coded decimal (BCD) value.
DoubleToBcd Converts a double precision floating point value to the corresponding binary-coded decimal (BCD) value.
FormatBcd Returns a string representation of a binary-coded decimal (BCD) value that reflects specified formatting.
IntegerToBcd Converts an integer value to the corresponding binary-coded decimal (BCD) value.
IsBcdNegative Indicates whether a binary-coded decimal (BCD) value is less than 0.
NormalizeBcd Converts a BCD value into another BCD value with a specified precision and number of decimals.
RoundAt (deprecated)
StrToBcd Converts a string to the corresponding binary-coded decimal (BCD) value.
TryStrToBcd Converts a string to the corresponding binary-coded decimal (BCD) value.
VarFMTBcd Returns the TVarType constant that identifies the internal type of a Variant as a TBcd value.
VarFMTBcdCreate Creates a new Variant that stores its value internally as a TBcd value.
VarIsFMTBcd Indicates whether a specified Variant represents a TBcd value.
Types
Variables
Constants
_DefaultDecimals _DefaultDecimals: Integer = $A;
_NoDecimal _NoDecimal: Integer = $FFFFFF01;
DefaultFMTBcdScale DefaultFMTBcdScale: Integer = 6;
MaxBcdPrecision MaxBcdPrecision: Integer = 12ドル;
MaxBcdScale MaxBcdScale: Integer = 4;
MaxFMTBcdDigits MaxFMTBcdDigits: Integer = 20ドル;
MaxFMTBcdFractionSize MaxFMTBcdFractionSize: Integer = 40ドル;
MaxStringDigits MaxStringDigits: Integer = 64ドル;
SizeOfFraction SizeOfFraction: Integer = 20ドル;
SizeOfTBCD SizeOfTBCD: Integer = 22ドル;