Jump to content
candidus

Floating Point Equal? primitive

Recommended Posts

Nice find :thumbup1:

 

It would be nice if the tolerance had a default value so for most use cases we didn't have to specify it.

Share this post


Link to post
Share on other sites
Can anyone imagine why it is missing from the standard palette?

It's in LV since version 8.0 ...

My imagination is limited so I selected the context help - it sends you to '(Incomplete) Beta Function'. So I'd guess that either it dropped off someone's radar at NI or there was a problem with the implementation and someone forgot to remove it (and dropped off the radar ever since!).

Share this post


Link to post
Share on other sites
Nice find :thumbup1:

 

It would be nice if the tolerance had a default value so for most use cases we didn't have to specify it.

Especially if the default tolerance would automatically adjust according to the type of floating  fixed point number wired into it. (misread and thought the title said fixed point.  would still be cool if it could automatically adapt to fixed point inpuits).

Share this post


Link to post
Share on other sites

There are multiple "correct" ways to check for near equality and perhaps the implementation as it stands is not what NI wanted to endorse as the way of doing things. As in many things, often the best implementation depends on context. Just my guess.

 

I think it's neat the primitive exists, but don't see it as a major loss that the functionality isn't on the native palette.

Share this post


Link to post
Share on other sites
This is a prime example of digging around in LabVIEW and finding fool's gold instead of actual gold.

 

Well, that's why I asked about it. Thank you! Nevertheless I think there should be done something about it:

Either implement the primitive properly or remove it entirely. Since it was never released this should break nobody's code. :D

Share this post


Link to post
Share on other sites
This is a prime example of digging around in LabVIEW and finding fool's gold instead of actual gold.

Dang, but my sincerest thank you for addressing this.

Share this post


Link to post
Share on other sites
Dang, but my sincerest thank you for addressing this.

 

No problem.  If it makes you feel better, I kudo'd the original idea.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.