Change the Format of a Number in TestStand

Updated May 8, 2023

Environment

Software

  • TestStand

I want to change the format or representation of a numeric variable, so I can see it with more than 1 digit. For example, having "03" instead of "3".

To change the format of a numeric variable, you can go to the Variables pane and right-click the variable and select the Numeric Format option to open the corresponding menu, as seen on this image:



Once there, you can choose to change the format, the representation, the minimum number of digits and select other options that you might want to change depending on your application.

You can also change this programmatically, by editing the NumericFormat property on a Statement Step and writing an expression with the considerations found in the NumericFormat Property - TestStand Help