LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Double digit display of one digit number

Solved!
Go to solution

Hi all,

 

I was wondering if there is a quick way of showing one digit numbers between 0-9 as in 00-09.

 

Best,

 

Kutal.

0 Kudos
Message 1 of 7
(4,664 Views)
Solution
Accepted by serkut17

Display Format of your numeric indicator.  Right click and go to properties, choose the Display Format tab.  Choose the Floating Point, with minimum field width of 2, and Pad with zeros on the left.  Then in Data Entry tab choose the range to be from 0 to 9 with coerce if outside that range, and increment of 1.0 if you are using a double.

Message 2 of 7
(4,660 Views)

Thanks a lot for the message, do you have an idea to convert this two digit numbers to string without losing precision

0 Kudos
Message 3 of 7
(4,600 Views)

Format into String.

0 Kudos
Message 4 of 7
(4,589 Views)
i tried but it eliminated the leftmost integer
0 Kudos
Message 5 of 7
(4,587 Views)

Did you set the format string code properly?

 

Right click on the function and select Edit Format String.

 

 

Spoiler
%02d

 

0 Kudos
Message 6 of 7
(4,581 Views)

Just as RavensFan suggested 😛 Check the image below, if still nor clear.

Thanks
uday
Message 7 of 7
(4,563 Views)