Porter Posted December 19, 2014 Report Share Posted December 19, 2014 View File Floating Point Almost Equal This package contains VIs for testing equality of floating point numbers within a specified tolerance. Absolute Epsilon comparison, Relative Epsilon comparison and the ULP comparison have been implemented as described in this blog post by Bruce Dawson: http://randomascii.wordpress.com/2012/02/25/comparing-floating-point-numbers-2012-edition/ Note that the ULP comparison has not been implemented for extended precision floating point type. Installation and instructions: Install VIP package using VI Package Manager 2014. Examples: "<LabVIEW>\examples\LAVA\AlmostEqual\AlmostEqual_Example 1.vi" Demonstrates the usage of all three AlmostEqual functions. "<LabVIEW>\examples\LAVA\AlmostEqual\AlmostEqual_Example 2.vi" Demonstrates a case where exactly equal fails to produce the expected result. Development version available on GitHub: https://github.com/rfporter/FP-Equal Submitter Porter Submitted 12/19/2014 Category General LabVIEW Version 1 Quote Link to comment
Mellroth Posted December 20, 2014 Report Share Posted December 20, 2014 I responded to the other thread regarding using pale-yellow for the background color, but for reference I add a comment here as well. /J Quote Link to comment
Porter Posted December 21, 2014 Author Report Share Posted December 21, 2014 Thanks for the suggestion. I've changed the color to orange. Quote Link to comment
Fab Posted January 5, 2015 Report Share Posted January 5, 2015 Just posted about this package at the Unit Testing Group at NI: https://decibel.ni.com/content/thread/26693 I have done similar comparison math in the past, but your package is a lot more complete. Thanks for the post to Bruce Dawson's article. Thanks, Fab Quote Link to comment
Mark Balla Posted February 28, 2015 Report Share Posted February 28, 2015 Certified 2-28-15 Placed in General Category Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.