RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TAggregateField.Precision Property

Determines the precision used in formatting floating-point values.

Pascal
property Precision: Integer;
C++
__property int Precision;

When the aggregate field represents a floating-point value (ResultType is ftFloat or ftCurrency), use Precision to set the number of digits beyond the decimal point that appear before rounding begins. Precision affects the format of the floating-point value when it is displayed as a text string, not the actual 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.
 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!