LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

A simple puzzler for the long (US at least) weekend...

Now for something (related, but) completely different!  What if you use the Extended Precision type (whose details are, shall we say, a tad murky)?Altenbach's FloatsAltenbach's Floats

You get yet another number!  If you assume that the three lowest bits are thrown away (why?), it's correct, but the Dbl representation is "closer".

 

Remind me to stick with "reasonable precision" (i.e. Biology, not Physics) ...

 

Bob Schor

0 Kudos
Message 11 of 15
(841 Views)

In LabVIEW 2011 32 bit it was I32 limit, not I64:

format.png

0 Kudos
Message 12 of 15
(789 Views)

Thanks, fellow LabVIEW devs - this was fun to follow along!  🙂

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 13 of 15
(761 Views)

@Bob_Schor wrote:

Now for something (related, but) completely different!  What if you use the Extended Precision type (whose details are, shall we say, a tad murky)?Altenbach's FloatsAltenbach's Floats

You get yet another number!  If you assume that the three lowest bits are thrown away (why?), it's correct, but the Dbl representation is "closer".

 

Remind me to stick with "reasonable precision" (i.e. Biology, not Physics) ...

 

Bob Schor


Hmm, shouldn't Extended precision have more ... precision?

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 14 of 15
(733 Views)

@Yamaeda wrote:


Hmm, shouldn't Extended precision have more ... precision?

/Y


I'd say in this case it is "as good as"

 

kommastellen.png

 

Bob's comment about the obscurity of the EXT number format is based on this:

 

https://zone.ni.com/reference/en-XX/help/371361R-01/lvhowto/floating_point_numbers/

 

https://zone.ni.com/reference/en-XX/help/371361R-01/lvconcepts/how_labview_stores_data_in_memory/

Extended-precision floating-point numbers have an 80-bit IEEE extended-precision format.

Note  In some cases, extended-precision floating-point numbers can have a 64-, 96-, and 128-bit IEEE extended-precision format depending on the computer processor. 80-bit is the most common.

 

 

 

 

0 Kudos
Message 15 of 15
(685 Views)