Guix will hold its first online conference November 22nd. Propose a talk before November 6th. Learn more!

perl-test-number-delta 1.06 Compare the difference between numbers against a given tolerance

At some point or another, most programmers find they need to compare floating-point numbers for equality. The typical idiom is to test if the absolute value of the difference of the numbers is within a desired tolerance, usually called epsilon. This module provides such a function for use with Test::More.