line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
##---------------------------------------------------------------------------- |
2
|
|
|
|
|
|
|
## Class Generic - ~/lib/Class/Number.pm |
3
|
|
|
|
|
|
|
## Version v0.1.2 |
4
|
|
|
|
|
|
|
## Copyright(c) 2022 DEGUEST Pte. Ltd. |
5
|
|
|
|
|
|
|
## Author: Jacques Deguest <jack@deguest.jp> |
6
|
|
|
|
|
|
|
## Created 2022/02/27 |
7
|
|
|
|
|
|
|
## Modified 2022/03/07 |
8
|
|
|
|
|
|
|
## All rights reserved |
9
|
|
|
|
|
|
|
## |
10
|
|
|
|
|
|
|
## This program is free software; you can redistribute it and/or modify it |
11
|
|
|
|
|
|
|
## under the same terms as Perl itself. |
12
|
|
|
|
|
|
|
##---------------------------------------------------------------------------- |
13
|
|
|
|
|
|
|
BEGIN |
14
|
|
|
|
|
|
|
{ |
15
|
|
|
|
|
|
|
use strict; |
16
|
2
|
|
|
2
|
|
1463
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
56
|
|
17
|
2
|
|
|
2
|
|
17
|
use parent qw( Module::Generic::Number ); |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
58
|
|
18
|
2
|
|
|
2
|
|
12
|
use vars qw( $SUPPORTED_LOCALES $DEFAULT ); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
8
|
|
19
|
2
|
|
|
2
|
|
129
|
$SUPPORTED_LOCALES = $Module::Generic::Number::SUPPORTED_LOCALES; |
|
2
|
|
|
|
|
7
|
|
|
2
|
|
|
|
|
184
|
|
20
|
2
|
|
|
2
|
|
6
|
$DEFAULT = $Module::Generic::Number::DEFAULT; |
21
|
2
|
|
|
|
|
7
|
our $VERSION = 'v0.1.2'; |
22
|
2
|
|
|
|
|
45
|
}; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
1; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=encoding utf8 |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 NAME |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
Class::Number - A Number Object Class |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 SYNOPSIS |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
use Class::Number; |
36
|
|
|
|
|
|
|
my $num = Class::Number->new; |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head1 VERSION |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
v0.1.2 |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head1 DESCRIPTION |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
This package provides a versatile number class object for the manipulation and chaining of numbers. |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
See L<Module::Generic::Number> for more information. |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 SEE ALSO |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
L<Class::Generic>, L<Class::Array>, L<Class::Scalar>, L<Class::Number>, L<Class::Boolean>, L<Class::Assoc>, L<Class::File>, L<Class::DateTime>, L<Class::Exception>, L<Class::Finfo>, L<Class::NullChain>, L<Class::DateTime> |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head1 AUTHOR |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
Jacques Deguest E<lt>F<jack@deguest.jp>E<gt> |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head1 COPYRIGHT & LICENSE |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
Copyright (c) 2022 DEGUEST Pte. Ltd. |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
You can use, copy, modify and redistribute this package and associated |
61
|
|
|
|
|
|
|
files under the same terms as Perl itself. |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=cut |