NAME
Math::PercentChange - calculate the percent change between two values
VERSION
version 0.01
SYNOPSIS
use Math::PercentChange qw(percent_change);
my $from = 10;
my $to = 5;
my $diff = percent_change($from, $to); # -50
percent_change
Calculate the percent change between two values. Returns the percent difference.
AUTHOR
Mike Baas <mbaas@cpan.org>
ACKNOWLEDGEMENTS
This extremely simple code was taken from Mark Jason Dominus' correction of David Wheeler's blog post on the subject matter of 'How To Calculate Percentage Change Between Two Values'. See http://www.justatheory.com/learn/math/percent_change.html for the original posting.
LICENSE
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.