DateTime-Locale-FromCLDR
view release on metacpan or search on metacpan
my $ref = $locale->number_symbols;
my $ref = $locale->number_symbols( 'latn' );
# {
# approximately => "~",
# decimal => ".",
# exponential => "E",
# group => ",",
# infinity => "â",
# list => ";",
# minus => "-",
# nan => "NaN",
# per_mille => "â°",
# percent => "%",
# plus => "+",
# superscript => "\xD7",
# time_separator => ":",
# }
Returns an hash reference of a locale's number symbols.
If somehow, none were found, it returns an empty hash reference, so make
For example "-"
Note that, in the CLDR data, although it is always a visually
identical representation, the character itself used varies,
depending on the locale used. For example: "-" ("\x{2D}") vs "-"
("\x{D8}\x{9C}\x{2D}")
* "nan"
The NaN sign. Corresponds to the IEEE NaN bit pattern.
For example "NaN", "не ÑиÑло"
* "per_mille"
"Symbol used to indicate a per-mille (1/1000th) amount."
For example "â°", "Ø", "0/00"
* "percent"
"Symbol used to indicate a percentage (1/100th) amount."
my $ref = $locale->number_symbols;
my $ref = $locale->number_symbols( 'latn' );
# {
# approximately => "~",
# decimal => ".",
# exponential => "E",
# group => ",",
# infinity => "â",
# list => ";",
# minus => "-",
# nan => "NaN",
# per_mille => "â°",
# percent => "%",
# plus => "+",
# superscript => "\xD7",
# time_separator => ":",
# }
Returns an hash reference of a locale's number symbols.
If somehow, none were found, it returns an empty hash reference, so make sure to check for the size of the hash reference returned.
- `minus`
"Symbol used to denote negative value."
For example `-`
Note that, in the CLDR data, although it is always a visually identical representation, the character itself used varies, depending on the locale used. For example: `-` (`\x{2D}`) vs `-` (`\x{D8}\x{9C}\x{2D}`)
- `nan`
The NaN sign. Corresponds to the IEEE NaN bit pattern.
For example `NaN`, `не ÑиÑло`
- `per_mille`
"Symbol used to indicate a per-mille (1/1000th) amount."
For example `â°`, `Ø`, `0/00`
- `percent`
"Symbol used to indicate a percentage (1/100th) amount."
lib/DateTime/Locale/FromCLDR.pm view on Meta::CPAN
my $ref = $locale->number_symbols;
my $ref = $locale->number_symbols( 'latn' );
# {
# approximately => "~",
# decimal => ".",
# exponential => "E",
# group => ",",
# infinity => "â",
# list => ";",
# minus => "-",
# nan => "NaN",
# per_mille => "â°",
# percent => "%",
# plus => "+",
# superscript => "\xD7",
# time_separator => ":",
# }
Returns an hash reference of a locale's number symbols.
If somehow, none were found, it returns an empty hash reference, so make sure to check for the size of the hash reference returned.
lib/DateTime/Locale/FromCLDR.pm view on Meta::CPAN
=item * C<minus>
"Symbol used to denote negative value."
For example C<->
Note that, in the CLDR data, although it is always a visually identical representation, the character itself used varies, depending on the locale used. For example: C<-> (C<\x{2D}>) vs C<-> (C<\x{D8}\x{9C}\x{2D}>)
=item * C<nan>
The NaN sign. Corresponds to the IEEE NaN bit pattern.
For example C<NaN>, C<не ÑиÑло>
=item * C<per_mille>
"Symbol used to indicate a per-mille (1/1000th) amount."
For example C<â°>, C<Ø>, C<0/00>
=item * C<percent>
"Symbol used to indicate a percentage (1/100th) amount."
t/01.locale.t view on Meta::CPAN
native_variant => undef,
native_variants => [],
number_symbols => {
approximately => "~",
decimal => ".",
exponential => "E",
group => ",",
infinity => "â",
list => ";",
minus => "-",
nan => "NaN",
per_mille => "â°",
percent => "%",
plus => "+",
superscript => "\xD7",
time_separator => ":",
},
number_system => q{latn},
number_systems => {
finance => undef,
native => "latn",
t/01.locale.t view on Meta::CPAN
native_variant => undef,
native_variants => [],
number_symbols => {
approximately => "~",
decimal => ".",
exponential => "E",
group => ",",
infinity => "â",
list => ";",
minus => "-",
nan => "NaN",
per_mille => "â°",
percent => "%",
plus => "+",
superscript => "\xD7",
time_separator => ":",
},
number_system => q{latn},
number_systems => {
finance => undef,
native => "latn",
t/01.locale.t view on Meta::CPAN
native_variant => q{Valenciano},
native_variants => ["Valenciano"],
number_symbols => {
approximately => "~",
decimal => ",",
exponential => "E",
group => ".",
infinity => "â",
list => ";",
minus => "-",
nan => "NaN",
per_mille => "â°",
percent => "%",
plus => "+",
superscript => "\xD7",
time_separator => ":",
},
number_system => q{latn},
number_systems => {
finance => undef,
native => "latn",
t/01.locale.t view on Meta::CPAN
native_variant => q{å½éé³å£°è¨å·},
native_variants => ["å½éé³å£°è¨å·", "ããã³å¼ãã¼ãå", ""],
number_symbols => {
approximately => "ç´",
decimal => ".",
exponential => "E",
group => ",",
infinity => "â",
list => ";",
minus => "-",
nan => "NaN",
per_mille => "â°",
percent => "%",
plus => "+",
superscript => "\xD7",
time_separator => ":",
},
number_system => q{latn},
number_systems => {
finance => "jpanfin",
native => undef,
( run in 0.307 second using v1.01-cache-2.11-cpan-4d50c553e7e )