Locale::MakePhrase::Numeric

Locale::MakePhrase::Numeric is a numeric translation/stringification module.
Download

Locale::MakePhrase::Numeric Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Mathew Robertson
  • Publisher web site:
  • http://search.cpan.org/~mathew/Locale-MakePhrase-0.5/lib/Locale/MakePhrase/Numeric.pm

Locale::MakePhrase::Numeric Tags


Locale::MakePhrase::Numeric Description

Locale::MakePhrase::Numeric is a numeric translation/stringification module. Locale::MakePhrase::Numeric is a numeric translation/stringification module.SYNOPSISThis module provides the functionality to translate and/or stringify a numeric, into something suitable for the string being translated.APIThe following class-functions are provided:$string stringify($number,$options)This class-function implements the stringification of a number to a suitable output format. The $options parameter is used to control the formatting behaviour:numeric_formatThe formatting appled to the number; this must be an array reference containing 4 elements:· decimal seperator· thousand's seperator· when the value is negative, the symbol shown to the left of the number· when the value is negative, the symbol shown to the right of the numberwidthSet the number of characters used in the output.precisionSet the maximum number of decimal places processed.fixedSet this to true to make the output use a fixed number of decimal places, irrespective if the values are all zeros. Use this in conjunction with the precision setting.scientificSet this value to true to make the number show exponential notation.leading_zerosSet this to true to make the output display zeros; combine this with the width setting.NOTESIf the number is purely an integer, you have not set the fixed or scientific settings, we try to keep the number from turning into its scientific notation (ie: we try to stop big numbers turning into something like 1.04E+09).Requirements:· Perl Requirements: · Perl


Locale::MakePhrase::Numeric Related Software