How do I represent a numerical value with leading zeros?

I have an integer value that is representing a time in the following format: (HHMMSS). I am looking to see if there is a way for me to always represent the values with 6 digits. After 10am the values are 6 digits long (ex./ 100530 as 10:05:30 am) but prior to 10am the number of digits starts to fall off the earlier you go in the day (ex./ 21045 as 02:10:45 am or 1515 as 00:15:15am).

 

Is there a way for me to represent the number with leading zeros in my PI vision screens?

Would I need to convert the number into a string and concatenate the leading zeros?

Parents Reply Children
No Data