Examples of formatting text objects as numbers
- Last UpdatedMar 17, 2025
- 2 minute read
The following table shows examples of displayed analog values when animated format characters are used in a text object. In these examples, the current value of a temperature I/O tag is 123.45 Cº. This tag is assigned as the reference value of a text object using an Analog animation link.
|
Formatted Text Object |
Displayed Value of the Text Object |
|---|---|
|
Temp = # C |
124 C Displays the temperature as an integer. Only one # needs to be entered in the text object. |
|
Temp = #.# C |
123.5 C The fractional part of the temperature is rounded to a single number using the # character. The integer part of the temperature is unchanged. |
|
Temp = 00000 C |
00124 C Adds leading zeros to the integer part of the temperature. |
|
Temp = 000.0 C |
123.5 C The fractional part of the temperature is rounded to a single digit because of the single zero in the format. |
|
Temp = 00.00 C |
123.45 C The original temperature value remains unchanged. |
|
Temp = 0,000.# |
0,123.5 C A leading zero and comma are forced at the integer part of the temperature reference value. The fractional part is rounded to a single number using the # character. |
Specify the format of text objects as numbers
-
Create a text object in a window and insert one or more characters to format a reference value associated with the text object.
-
Double-click the text object to show the Animation Links selection dialog box.
-
In the Value Display section, select Analog. The Output -> Analog Expression dialog box appears.

-
In the Expression field, type an analog tagname or expression.
-
Select OK.
-
Save your changes to the window.
-
Run the application to verify the number appears correctly in the text object.