ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Formatting Bug (?)

Solved!
Go to solution

LV 2012 SP1.

I have a SGL numeric control, formatted as SI notation, 6 significant digits.

When I enter 1n (nano) it displays 999.99900p. I know 1n can't be represented excatly as SGL number, the closest value is 999.9999717...p

With 6 significant digits this should still show as 1n.

So this looks like a bug to me. Btw, the same happens with 1E (Exa), which displays as 999.99900P (Peta).

Any thoughts? Same in later LV versions?

 

FormattingBug.png

Message 1 of 8
(5,268 Views)

Hi dan,

 

yes, I can confirm the same behaviour with LV2014SP1.

 

With 6 significant digits I get the same result as in your image. with >=8 significant digits the result looks ok "999.9999717p"…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 8
(5,259 Views)

I can also confirm that LV 2015 has not changed the behaviour.

0 Kudos
Message 3 of 8
(5,256 Views)

Thanks for the confirmation. I usually set 6 significant digits for SGL numbers since this is about the precision of SGL numbers.

I was surprised to suddenly see 8 digits (too wide for the control since the control size was adapted to 6 digits).

 

So this IS a bug.

 

0 Kudos
Message 4 of 8
(5,248 Views)

Anybody from NI? Can we get a CAR?

 

0 Kudos
Message 5 of 8
(5,151 Views)

If you want a CAR, I suggest you raise a support ticket with NI and then post the number you get from them here. NI employees don't necessarily always see forum threads and raise CARs from - better to raise it yourself (but post it here for others that might be interested in the resolution).


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 6 of 8
(5,136 Views)
Solution
Accepted by topic author dan_u

CAR 561864.

 

Message 7 of 8
(5,101 Views)

Just for completeness: 1n displays fine in automatic or scientific formatting with 6 significant digits. It shows correctly as 1E-9. The bug only appears in SI formatting.

 

0 Kudos
Message 8 of 8
(4,990 Views)