| 1 | package CLDR::Number::Format::Decimal; | ||
| 2 | |||
| 3 | 10 | ▶ | use utf8; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 10 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 10 | our $VERSION = '0.00_03'; | |
| 7 | |||
| 8 | 10 | with qw( CLDR::Number::Role::Format ); | |
| 9 | |||
| 10 | 10 | has infinity => ( | |
| 11 | is => 'rw', | ||
| 12 | ); | ||
| 13 | |||
| 14 | 10 | has nan => ( | |
| 15 | is => 'rw', | ||
| 16 | ); | ||
| 17 | |||
| 18 | 10 | has _pattern_type => ( | |
| 19 | is => 'ro', | ||
| 20 | default => 'decimal', | ||
| 21 | ); | ||
| 22 | |||
| 23 | after _trigger_locale => sub { | ||
| 24 | 26 | ▶ | my ($self) = @_; |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 25 | |||
| 26 | 26 | $self->_build_signs(qw{ infinity nan }); | |
| 27 | 10 | }; | |
| 28 | |||
| 29 | ▶ | sub BUILD {} | |
|
Subroutine
BUILD: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 30 | |||
| 31 | sub format { | ||
| 32 | 105 | ▶ | my ($self, $num) = @_; |
|
Subroutine
format: called CC=1 SCAR=0.0
Pod
documented
| |||
| 33 | |||
| 34 | 105 | return $self->_format_number($num); | |
| 35 | } | ||
| 36 | |||
| 37 | 10 | 1; | |
| 38 | |||
| 39 | __END__ | ||