2007-09-23 John Peacock as_int() could have floating point errors. See: http://rt.cpan.org/Public/Bug/Display.html?id=29210 for details. This code is faster too! Patch by 2007-08-06 John Peacock Actually tests cleanly both with and without en_US 2007-08-06 John Peacock Deal with problems where en_US isn't installed at all. Reported by David Cantrell 2007-08-05 John Peacock Stupid locale() tests didn't work for non-US locale 2007-08-04 John Peacock Forgot to add new testfile to the MANIFEST 2007-08-04 John Peacock Bugfix to correctly handle changing default currency as a class method. New tests for changing default currency as class method. 2006-01-25 John Peacock Final changes before CPAN release. * MANIFEST Forgot to add new test here. * lib/Math/Currency.pm Test localeconv() early and bail immediately if not supported. Bad markup in POD. 2006-01-24 John Peacock Prep for new release to CPAN. * README Note the changes for this release. * lib/Math/Currency.pm Add additional two digits of precision (hidden) to prevent loss of accuracy on multiple math operations. Suggested by Brian Phillips * lib/Math/Currency/JPY.pm lib/Math/Currency/GBP.pm Run code through perltidy to try and make things consistent. * t/002_basic.t New empty subclass test. * t/003_subclass.t Loading class has to happen in BEGIN{} to be valid test. * t/005_rounding.t New tests for extended precision feature. 2005-12-16 John Peacock * lib/Math/Currency.pm Preserve object formatting when making implicit copy, Reported by "Brian Phillips" . Bump $VERSION. * t/002_basic.t Test for above. * README Update this the first time for a change. 2005-12-07 John Peacock Must remember to patch Module::Release to handle bare Build.PL. * Makefile.PL MANIFEST Add compatibility Makefile.PL so that `release` will work. 2005-12-07 John Peacock Add two object methods suggested by Cory Watson . * README For a change, update this for the new release. ;) * lib/Math/Currency.pm Add obj->as_int and obj->as_float to ease e-commerce and database operations. * t/002_basic.t No new features allowed without corresponding tests! :) 2005-10-29 John Peacock * lib/Math/Currency.pm Correct handle case when adding formatted string to a M::C object, reported by "Brian Phillips" * scripts/new_currency lib/Math/Currency/GBP.pm lib/Math/Currency/JPY.pm Rewrite to include version of M::C used to generate currency module, add LANG used to create currency module, and regen distributed modules using new script. * t/002_basic.t t/003_subclass.t Rewrite tests to use Yen instead of Euro (since that has been removed from the distribution. * README Add warning about removing M::C::Euro from the distro. * Build.PL Minor formatting change 2005-10-27 John Peacock * lib/Math/Currency/EUR.pm After looking at all of the possible EURO supported locales, with their wildly differing formats, I've decided to just pull if from the distro completely. 2005-10-26 John Peacock * lib/Math/Currency/EUR.pm There seems to be some vast disagreement about what the correct formatting should be for EURO. This seems to be consistent with most of the locales in SuSE 10.0. YMMV. 2005-02-12 John Peacock * lib/Math/Currency.pm Improve documentation of subclasses and automatic format generation * t/002_basic.t Correct test output based on correctly defined locale formats * Build.PL Add explicit dependency on Math::BigFloat 1.47 * README Rewrite to emphasize what this release includes 2005-02-06 John Peacock * lib/Math/Currency.pm Add support for unknown currencies Replace tabs with spaces (for consistency) Document currency format subclasses and custom currencies 2005-02-06 John Peacock * lib/Math/Currency/EUR.pm lib/Math/Currency/JPY.pm Correct format rules based on current locale support * lib/Math/Currency/GBP.pm Actually generated with new_currency script * scripts/new_currency generate correct code now produce diagnostic output * t/002_basic.t Don't need warning since skip() works now * t/004_localize.t Test subclass vs. locale-loaded format 2005-01-18 John Peacock Working new_currency script Updated POD (but not implemented all fallback code yet) 2005-01-16 John Peacock Wrong $VERSION code for new release 2005-01-16 John Peacock Generated files don't belong in the repository 2005-01-16 John Peacock Finish conversion to Module::Build Split out ISO Locale/Currency formats into subclasses Test subclasses (at least a little) Begin work on script to create custom subclasses 2005-01-16 John Peacock Convert to Module::Build Hardcode the $VERSION Change the new() to handle null $value 2005-01-15 John Peacock hard code $VERSION scalar and add META.yml 2002-11-13 John Peacock Skip locale tests if no locale support 2002-11-13 John Peacock Enhance initialize() to return success only locale support existing 2002-11-13 John Peacock Forgot to increment the number of tests 2002-11-13 John Peacock Protect the ord() by making sure there is a defined value to use first 2002-08-26 John Peacock Bring current with pm file 2002-08-26 John Peacock - Forgot to fix 5.8.0 tr// error 2002-08-26 John Peacock - New tests for locale global format initialization 2002-08-26 John Peacock - Add $always_init global parameter and test initialize() in format() - Add POD discussion of quoting input 2002-08-26 John Peacock - Add $always_init global parameter and test initialize() in format() - Add POD discussion of quoting input 2002-08-26 John Peacock - Rename monetary_locale() to initialize() and make module use it itself. - Document in POD 2002-08-26 John Peacock - Add monetary_locale to reset global $FORMAT to new POSIX locale - Reformat POD to look a little nicer 2002-08-26 John Peacock - Trailing decimal point for currency without fraction (Jacques Deguest) - Added JPY to preset format 2002-03-06 John Peacock Forgot to enforce precision on objects with only global format Need to have ->new() called from M::BI::objectify use M::BF::new instead 2002-02-12 John Peacock Select sensible defaults for missing locale parameters 2002-02-12 John Peacock Select sensible defaults for missing locale parameters 2002-02-12 John Peacock Rewrite docs Release to CPAN 2002-02-11 John Peacock complete work on LC_MONETARY formatting 2002-02-05 John Peacock Handle parentheses around negative currency Handle less than FRAC_DIGITS decimal places 2002-02-05 John Peacock Handle parentheses around negative currency Handle less than FRAC_DIGITS decimal places 2002-02-01 John Peacock format() will now set/get and copy the global FORMAT as needed 2002-02-01 John Peacock - make the format() function much more clever 2002-02-01 John Peacock - Change public interface to use Locale LC_MONETARY codes - Produce actual documentation for a change 2002-01-30 John Peacock Adjust tests to handle non-US locale 2002-01-30 John Peacock Adjust tests to handle non-US locale 2002-01-30 John Peacock New version (corrected tests) 2002-01-30 John Peacock Moved to t/test.t so harness is used, hiding the diagnostic output 2002-01-30 John Peacock Move to t/test.t so harness is used, hiding the diagnostic output 2002-01-30 John Peacock Update tests to correctly succeed for non US locale settings 2002-01-29 John Peacock Rewrite to use Math::BigFloat >= 1.27 Change version to next major level 2001-09-14 JPeacock Initial revision 2001-09-14 John Peacock New repository initialized by cvs2svn. ;; Local Variables: ;; coding: utf-8 ;; End: