LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

digits of precision limit to 3 significant digits

Solved!
Go to solution

Hello!

 

I need 3 signifcant digits. If I choose 13 digits, it gives me 2 places. If I choose 14, it gives me all places. Can you please see the attached VI and help me? I need 3 decimal places. Is this possible?

 

Thanks 🙂

0 Kudos
Message 1 of 23
(4,222 Views)

HI Susanne,

 

you need to choose a display format of "%.3f". Change the properties of the numeric control accordingly!

 

If you really insist on "3 significant numbers" you need to choose "%_3f", but all this is available in the control's properties dialog!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 23
(4,218 Views)

Thanks Gerd.  The numeric properties of a control doesn't show "%_3f". Where can I find/choose it?

0 Kudos
Message 3 of 23
(4,207 Views)

In the control properties dialog!

 

In der deutschen Version ist das das "Anzeigeformat…", welches man entweder durch Zusammenklicken einstellt - oder über den "Fortgeschrittenen Bearbeitungsmodus"…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 23
(4,200 Views)
right click on the control, go to tab "Display Format"

If Tetris has taught me anything, it's errors pile up and accomplishments disappear.
0 Kudos
Message 5 of 23
(4,198 Views)
@gerdw hatte extra geguggt, ob du schon geantwortet hattest 😉

If Tetris has taught me anything, it's errors pile up and accomplishments disappear.
0 Kudos
Message 6 of 23
(4,197 Views)

yes, I did that. and then?

 

btw: I don't have an control, it's an indicator but the properties looks the same 😕

0 Kudos
Message 7 of 23
(4,191 Views)

Hi Susanne,

 

you surely don't want to "hide trailing zeros", don't need "automatic formatting" or 13 signifcant digits!

 

You wanted floats with 3 significant digits…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 23
(4,178 Views)

while you were posting, I found it - thanks 🙂

 

has this changing consequences for further calculations?

0 Kudos
Message 9 of 23
(4,172 Views)

every numeric indictaor, control, constant has this tab

 

 

this is AFAIK only representation, but i am not sure


If Tetris has taught me anything, it's errors pile up and accomplishments disappear.
0 Kudos
Message 10 of 23
(4,171 Views)