LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Format Display for numeric array

Solved!
Go to solution

Hi all,

I am converting timestamp strings to a doubles and places them in an array of doubles. However, the array of doubles only shows the whole number. How do I configure the it to show 4 digits after the decimal points?

0 Kudos
Message 1 of 4
(1,530 Views)

Put a simple Dbl Control on the desktop, and put the number 123456.789 inside it.  What do you see?  [I see "123457" -- you should see the same].  See if you can figure out why it is doing this.  Hint -- right-click the control you just put down, click "Properties", and examine its properties.  See if anything "suggests itself" to you.  If it isn't obvious after doing this, try putting the number 1.23456789 in the Control, and try again ...]

 

Bob Schor

0 Kudos
Message 2 of 4
(1,491 Views)

Hi Bob,

The Dbl Control property has a "Display Format" tab where I can set the number of digits after the decimal points. I could not find a similar feature by right click on the array and select "Property".

 

Thank you

0 Kudos
Message 3 of 4
(1,483 Views)
Solution
Accepted by topic author DavidPhung

Don't click on the array, but click on the Dbl inside the array.

 

Bob Schor

Message 4 of 4
(1,461 Views)