JVCL Help:TJvCustomNumEdit.DecimalPlaceRound

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Specifies how the floating-point value is rounded.


Pascal

 propertyDecimalPlaceRound: Boolean;


Description

The control rounds the internal stored value after the number of digits beyond the decimal point as specified by DecimalPlaces.
Set DecimalPlaceRound to true to round to the nearest. If two are equally near then rounding is done away from zero. Set DecimalPlaceRound to false to use the default Round-like rounding:
If DecimalPlaces equals 2, then:

Value False True----- ----- ----0,124 0,12 0,12 0,125 0,12 0,13 0,126 0,13 0,13 0,135 0,14 0,14 0,145 0,14 0,15 -0,124 -0,12 -0,12 -0,125 -0,12 -0,12 -0,126 -0,13 -0,13


See Also

TJvCustomNumEdit.DecimalPlaces


About

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