Formatting numbers in components
Default formats for numbers are those specified in the regional settings in Windows Control Panel. In WinStudio, you can specify whether decimal values are rounded and truncated.
For example, if you specify two decimal places in the Decimal Point Position component property, you can set the Round component property to produce these results:
If the Round property = True, then: | If the Round property = False, then: |
---|---|
1.008 displays as 1.01 | 1.008 displays as 1.00 |
1.000 displays as 1.00 | 1.000 displays as 1.00 |
1.056 displays as 1.06 | 1.056 displays as 1.05 |
Related topics