Apache::Wyrd::Number - Format Numerals or Translate to Written (English)
There are <BASENAME::Number> <BASENAME::Lookup query="select count(stones) from dancers" /> </BASENAME::Number> stones in the dancers.
Translate the number into another symbol-system. Currently only english is supported as an option.
How many decimals to round the number to (not compatible with translate).
What currency symbol to use to the left of the number. (Not compatible with translate)
string to put to the left of the currency symbol, if applicable.
string to put to the right of the number
(format: (returns) name (arguments after self))
Accepts a value and a "mode" string. Based on the mode string, will perform a translation of the number in the mode specified by the translate attribute, as long as the number is between 0 and 999. This method is meant to be instantiated. The version included in this module will translate most of the numbers one might have to spell out to suit a style, as is commonly required when the number appears at the beginning of a sentence. Currently, only english is supported as an option. This number will be capitalized if the capitalize flag is set.
Reserves the _format_output method.
Barry King <firstname.lastname@example.org>
General-purpose HTML-embeddable perl object
Copyright 2002-2007 Wyrdwright, Inc. and licensed under the GNU GPL.
See LICENSE under the documentation for