http://search.cpan.org/~evdb/Test-Numeric/lib/Test/Numeric.pm
This Perl module allows you to test that numbers look right. Obviously it does not try to reimplement the built in numerical comparison operators.
For more details on how it works please follow the link above.