JVCL Help:TJvxCurrencyEdit.DecimalPlaces
JVCL Help: TJvxCurrencyEdit.DecimalPlaces Property
Search in JVCL Help
Search in all projectsSummary
Specifies the precision for the floating-point value.
Pascal
propertyDecimalPlaces: Cardinal;
Description
Use DecimalPlaces to set the number of digits beyond the decimal point that the floating-point value of the control should be formatted to before rounding begins. Use DecimalPlaceRound to alter the way the value is rounded after the number of the digits beyond the decimal point specified by DecimalPlaces.
Use DisplayFormat to change the format of the floating-point value when it is displayed as a text string in the edit box, but note that DecimalPlaces may also affect that displayed text string:
Entered value | DisplayFormat | DecimalPlaces | Displayed text string | Stored value |
0.1234 | 0.### | 2 | 0.12 | 0.12 |
0.1234 | 0.### | 3 | 0.123 | 0.123 |
0.1234 | 0.### | 4 | 0.123 | 0.1234 |
0.1234 | 0.#### | 4 | 0.1234 | 0.1234 |
See Also
TJvCustomNumEdit.DisplayFormat
About
Notes
DecimalPlaces affects the actual floating-point value that is stored in the control.
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page