Money::ChangeMaker::Denomination

Money::ChangeMaker::Denomination is a OO representation of a monetary unit.
Download

Money::ChangeMaker::Denomination Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Avi Finkel
  • Publisher web site:
  • http://search.cpan.org/~avif/

Money::ChangeMaker::Denomination Tags


Money::ChangeMaker::Denomination Description

Money::ChangeMaker::Denomination is a OO representation of a monetary unit. Money::ChangeMaker::Denomination is a OO representation of a monetary unit.SYNOPSIS See L< Money::ChangeMaker >An object of type Denomination represents a monetary unit, such as a dollar bill or a 5 rupee coin. Objects such as this are used by the Money::ChangeMaker. Instead of subclassing this package, it will generally use singelton exemplar objects to hold basic type information.METHODSnew(value, name, )This is the constructor method for the class.The first argument must be numeric, and represents the value of this object. If this Denomination is part of a set, it is important that its value be expressed in the same base units as the other Denominations in that set. For example, if the nickel Denomination has the value 5, then the 10 dollar bill Denomination should have the value 1000, not 10. Please see the documentation for the Money::ChangeMaker::Presets module for notes on the downsides of using non-integer values in denominations.The second argument is the name of this Denomination, such as "dollar bill" or "penny". The third argument is optional, and if provided, sets the 'plural name' of the Denomination. If this argument is not provided, then the Denomination's name is appended with "s" to create the plural. This argument would be provided in the case of, for example, "pennies".value()Sets/gets the value of this objectname()Sets/gets the name of this object.plural()Sets/gets the plural name of this object. Requirements: · Perl


Money::ChangeMaker::Denomination Related Software