Data.DB.TFloatField.Precision

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: property
Visibility: published
Source:
Data.DB.pas
Data.DB.hpp
Unit: Data.DB
Parent: TFloatField

Delphi

property Precision: Integer read FPrecision write SetPrecision default 15;

C++

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

Description

Determines the precision used in formatting the value in a floating-point field.

Use Precision to set the maximum number of digits in the string representation (both integer part and fractional part). Precision affects the format of the floating-point value when it is displayed as a text string, not the actual floating-point value that is stored in the field.

The default value of Precision is 15 decimal places.

Note: Precision must be greater than or equal to 2. Trying to set Precision to a value less than 2 changes the value of Precision to 2.

See Also