Data.DB.TBCDField.Precision

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Precision: Integer read FPrecision write SetPrecision default 0;

C++

__property int Precision = {read=FPrecision, write=SetPrecision, default=0};

Properties

Type Visibility Source Unit Parent
property published
Data.DB.pas
Data.DB.hpp
Data.DB TBCDField

Description

Specifies the number of digits of accuracy used to store the field value.

Precision can be a value from 0 through 32. However, because TBCDField uses the currency type to work with data from BCD fields, TBCDField limits the precision of the BCD values it can support to 4 decimal places and 20 significant digits. The underlying database table may include values that require greater precision, and setting precision to a value greater than 20 allows you to create a table with higher precision.

See Also