Floating-point numbers can be displayed as a decimal number in fixed-point notation. The format definition for this has the following format:
% <flags> <minimum number of digits> . <accuracy> f
Recommended data types for this kind of placeholder variable: REAL | LREAL
Syntax |
Example |
Description |
Example in Visualization |
---|---|---|---|
<flags> |
Optional and combinable |
||
|
|
Alignment left-justified, with respect to the minimum number of digits |
|
|
|
Always with a sign, also for positive numbers |
Code: “Text” property: “Text variable” property: Output: |
|
|
Places are filled with a 0 until the minimum number of places (including the sign and decimal point) is reached |
Code: “Text” property: “Text variable” property: Output: |
<minimum number of digits> . <accuracy> |
Optional When not specified, the number is output in standard format 1.6 |
||
<minimum number of digits> |
|
Minimum number of places including the sign and decimal point Example: 12 |
Code: “Text” property: “Text variable” property: Output: |
<accuracy> |
|
Accuracy in places and the decimal point Example: 3 |
Code: “Text” property: “Text variable” property: Output: |
|
|
Required Format identifier for decimal display with the decimal point |
Code: “Text” property: “Text variable” property: Output: |