Linux ip-148-66-134-25.ip.secureserver.net 3.10.0-1160.119.1.el7.tuxcare.els10.x86_64 #1 SMP Fri Oct 11 21:40:41 UTC 2024 x86_64
Apache
: 148.66.134.25 | : 3.137.190.6
66 Domain
8.0.30
amvm
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
BLACK DEFEND!
README
+ Create Folder
+ Create File
/
usr /
share /
perl5 /
pod /
[ HOME SHELL ]
Name
Size
Permission
Action
a2p.pod
5.96
KB
-rw-r--r--
perl.pod
15.43
KB
-rw-r--r--
perl5004delta.pod
54.92
KB
-rw-r--r--
perl5005delta.pod
33.48
KB
-rw-r--r--
perl5100delta.pod
53.41
KB
-rw-r--r--
perl5101delta.pod
42.86
KB
-rw-r--r--
perl5120delta.pod
87.19
KB
-rw-r--r--
perl5121delta.pod
9.91
KB
-rw-r--r--
perl5122delta.pod
9.38
KB
-rw-r--r--
perl5123delta.pod
4
KB
-rw-r--r--
perl5124delta.pod
3.59
KB
-rw-r--r--
perl5140delta.pod
140.94
KB
-rw-r--r--
perl5141delta.pod
7.78
KB
-rw-r--r--
perl5142delta.pod
6.73
KB
-rw-r--r--
perl5143delta.pod
7.58
KB
-rw-r--r--
perl5160delta.pod
130.52
KB
-rw-r--r--
perl5161delta.pod
6
KB
-rw-r--r--
perl5162delta.pod
3.51
KB
-rw-r--r--
perl5163delta.pod
3.99
KB
-rw-r--r--
perl561delta.pod
121.79
KB
-rw-r--r--
perl56delta.pod
104.68
KB
-rw-r--r--
perl581delta.pod
37.17
KB
-rw-r--r--
perl582delta.pod
4.37
KB
-rw-r--r--
perl583delta.pod
6.19
KB
-rw-r--r--
perl584delta.pod
7.19
KB
-rw-r--r--
perl585delta.pod
5.75
KB
-rw-r--r--
perl586delta.pod
4.54
KB
-rw-r--r--
perl587delta.pod
8.16
KB
-rw-r--r--
perl588delta.pod
24.68
KB
-rw-r--r--
perl589delta.pod
52.64
KB
-rw-r--r--
perl58delta.pod
112.21
KB
-rw-r--r--
perlaix.pod
18.77
KB
-rw-r--r--
perlamiga.pod
6.87
KB
-rw-r--r--
perlapi.pod
315.46
KB
-rw-r--r--
perlapio.pod
18.88
KB
-rw-r--r--
perlartistic.pod
6.85
KB
-rw-r--r--
perlbeos.pod
2.87
KB
-rw-r--r--
perlbook.pod
7.19
KB
-rw-r--r--
perlboot.pod
183
B
-rw-r--r--
perlbot.pod
182
B
-rw-r--r--
perlbs2000.pod
7.73
KB
-rw-r--r--
perlcall.pod
54.03
KB
-rw-r--r--
perlce.pod
8.72
KB
-rw-r--r--
perlcheat.pod
4.39
KB
-rw-r--r--
perlclib.pod
7.5
KB
-rw-r--r--
perlcn.pod
4.82
KB
-rw-r--r--
perlcommunity.pod
6.29
KB
-rw-r--r--
perlcygwin.pod
27.17
KB
-rw-r--r--
perldata.pod
36.33
KB
-rw-r--r--
perldbmfilter.pod
4.86
KB
-rw-r--r--
perldebguts.pod
36.79
KB
-rw-r--r--
perldebtut.pod
20.79
KB
-rw-r--r--
perldebug.pod
38.15
KB
-rw-r--r--
perldelta.pod
3.99
KB
-rw-r--r--
perldgux.pod
2.75
KB
-rw-r--r--
perldiag.pod
207.82
KB
-rw-r--r--
perldos.pod
10.28
KB
-rw-r--r--
perldsc.pod
24.84
KB
-rw-r--r--
perldtrace.pod
6.21
KB
-rw-r--r--
perlebcdic.pod
67.61
KB
-rw-r--r--
perlembed.pod
35.21
KB
-rw-r--r--
perlepoc.pod
3.57
KB
-rw-r--r--
perlexperiment.pod
4.84
KB
-rw-r--r--
perlfaq.pod
22.01
KB
-rw-r--r--
perlfaq1.pod
13.52
KB
-rw-r--r--
perlfaq2.pod
9.28
KB
-rw-r--r--
perlfaq3.pod
37.46
KB
-rw-r--r--
perlfaq4.pod
87.39
KB
-rw-r--r--
perlfaq5.pod
54.11
KB
-rw-r--r--
perlfaq6.pod
38.66
KB
-rw-r--r--
perlfaq7.pod
36.35
KB
-rw-r--r--
perlfaq8.pod
48.28
KB
-rw-r--r--
perlfaq9.pod
14.71
KB
-rw-r--r--
perlfork.pod
12.78
KB
-rw-r--r--
perlform.pod
16.29
KB
-rw-r--r--
perlfreebsd.pod
1.55
KB
-rw-r--r--
perlfunc.pod
338.43
KB
-rw-r--r--
perlgit.pod
29.75
KB
-rw-r--r--
perlglossary.pod
110.66
KB
-rw-r--r--
perlgpl.pod
13.54
KB
-rw-r--r--
perlguts.pod
111.66
KB
-rw-r--r--
perlhack.pod
35.03
KB
-rw-r--r--
perlhacktips.pod
45.5
KB
-rw-r--r--
perlhacktut.pod
6.07
KB
-rw-r--r--
perlhaiku.pod
1.47
KB
-rw-r--r--
perlhist.pod
43.32
KB
-rw-r--r--
perlhpux.pod
28.07
KB
-rw-r--r--
perlhurd.pod
1.94
KB
-rw-r--r--
perlintern.pod
42.53
KB
-rw-r--r--
perlinterp.pod
30
KB
-rw-r--r--
perlintro.pod
22.08
KB
-rw-r--r--
perliol.pod
33.03
KB
-rw-r--r--
perlipc.pod
70.17
KB
-rw-r--r--
perlirix.pod
4.29
KB
-rw-r--r--
perljp.pod
7.57
KB
-rw-r--r--
perlko.pod
7.52
KB
-rw-r--r--
perllexwarn.pod
14.61
KB
-rw-r--r--
perllinux.pod
1.45
KB
-rw-r--r--
perllocale.pod
51.43
KB
-rw-r--r--
perllol.pod
10.93
KB
-rw-r--r--
perlmacos.pod
1001
B
-rw-r--r--
perlmacosx.pod
10.4
KB
-rw-r--r--
perlmod.pod
24.04
KB
-rw-r--r--
perlmodinstall.pod
12.41
KB
-rw-r--r--
perlmodlib.pod
78.49
KB
-rw-r--r--
perlmodstyle.pod
20.76
KB
-rw-r--r--
perlmpeix.pod
14.24
KB
-rw-r--r--
perlmroapi.pod
3.13
KB
-rw-r--r--
perlnetware.pod
6.35
KB
-rw-r--r--
perlnewmod.pod
10.95
KB
-rw-r--r--
perlnumber.pod
8.16
KB
-rw-r--r--
perlobj.pod
33.65
KB
-rw-r--r--
perlootut.pod
25.6
KB
-rw-r--r--
perlop.pod
121.73
KB
-rw-r--r--
perlopenbsd.pod
1.18
KB
-rw-r--r--
perlopentut.pod
37.53
KB
-rw-r--r--
perlos2.pod
90.53
KB
-rw-r--r--
perlos390.pod
15.2
KB
-rw-r--r--
perlos400.pod
4.51
KB
-rw-r--r--
perlpacktut.pod
49.83
KB
-rw-r--r--
perlperf.pod
50.05
KB
-rw-r--r--
perlplan9.pod
5
KB
-rw-r--r--
perlpod.pod
21.27
KB
-rw-r--r--
perlpodspec.pod
66.2
KB
-rw-r--r--
perlpolicy.pod
19.73
KB
-rw-r--r--
perlport.pod
82.63
KB
-rw-r--r--
perlpragma.pod
5.11
KB
-rw-r--r--
perlqnx.pod
4.14
KB
-rw-r--r--
perlre.pod
100.76
KB
-rw-r--r--
perlreapi.pod
25.17
KB
-rw-r--r--
perlrebackslash.pod
25.64
KB
-rw-r--r--
perlrecharclass.pod
34.19
KB
-rw-r--r--
perlref.pod
28.32
KB
-rw-r--r--
perlreftut.pod
18.23
KB
-rw-r--r--
perlreguts.pod
36
KB
-rw-r--r--
perlrequick.pod
17.5
KB
-rw-r--r--
perlreref.pod
14.19
KB
-rw-r--r--
perlretut.pod
115.13
KB
-rw-r--r--
perlriscos.pod
1.49
KB
-rw-r--r--
perlrun.pod
49.58
KB
-rw-r--r--
perlsec.pod
22.77
KB
-rw-r--r--
perlsolaris.pod
28.63
KB
-rw-r--r--
perlsource.pod
6.19
KB
-rw-r--r--
perlstyle.pod
8.42
KB
-rw-r--r--
perlsub.pod
55.15
KB
-rw-r--r--
perlsymbian.pod
15.44
KB
-rw-r--r--
perlsyn.pod
41.04
KB
-rw-r--r--
perlthrtut.pod
45.41
KB
-rw-r--r--
perltie.pod
37.02
KB
-rw-r--r--
perltoc.pod
639
KB
-rw-r--r--
perltodo.pod
362
B
-rw-r--r--
perltooc.pod
183
B
-rw-r--r--
perltoot.pod
183
B
-rw-r--r--
perltrap.pod
40.28
KB
-rw-r--r--
perltru64.pod
7.55
KB
-rw-r--r--
perltw.pod
5.15
KB
-rw-r--r--
perlunicode.pod
70.89
KB
-rw-r--r--
perlunifaq.pod
13.31
KB
-rw-r--r--
perluniintro.pod
35.44
KB
-rw-r--r--
perluniprops.pod
229.74
KB
-rw-r--r--
perlunitut.pod
7.76
KB
-rw-r--r--
perlutil.pod
9.68
KB
-rw-r--r--
perluts.pod
3.11
KB
-rw-r--r--
perlvar.pod
69.19
KB
-rw-r--r--
perlvmesa.pod
3.88
KB
-rw-r--r--
perlvms.pod
51.33
KB
-rw-r--r--
perlvos.pod
5.82
KB
-rw-r--r--
perlwin32.pod
34.58
KB
-rw-r--r--
perlxs.pod
71.66
KB
-rw-r--r--
perlxstut.pod
48.52
KB
-rw-r--r--
perlxstypemap.pod
22.97
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : perlnumber.pod
=head1 NAME perlnumber - semantics of numbers and numeric operations in Perl =head1 SYNOPSIS $n = 1234; # decimal integer $n = 0b1110011; # binary integer $n = 01234; # octal integer $n = 0x1234; # hexadecimal integer $n = 12.34e-56; # exponential notation $n = "-12.34e56"; # number specified as a string $n = "1234"; # number specified as a string =head1 DESCRIPTION This document describes how Perl internally handles numeric values. Perl's operator overloading facility is completely ignored here. Operator overloading allows user-defined behaviors for numbers, such as operations over arbitrarily large integers, floating points numbers with arbitrary precision, operations over "exotic" numbers such as modular arithmetic or p-adic arithmetic, and so on. See L<overload> for details. =head1 Storing numbers Perl can internally represent numbers in 3 different ways: as native integers, as native floating point numbers, and as decimal strings. Decimal strings may have an exponential notation part, as in C<"12.34e-56">. I<Native> here means "a format supported by the C compiler which was used to build perl". The term "native" does not mean quite as much when we talk about native integers, as it does when native floating point numbers are involved. The only implication of the term "native" on integers is that the limits for the maximal and the minimal supported true integral quantities are close to powers of 2. However, "native" floats have a most fundamental restriction: they may represent only those numbers which have a relatively "short" representation when converted to a binary fraction. For example, 0.9 cannot be represented by a native float, since the binary fraction for 0.9 is infinite: binary0.1110011001100... with the sequence C<1100> repeating again and again. In addition to this limitation, the exponent of the binary number is also restricted when it is represented as a floating point number. On typical hardware, floating point values can store numbers with up to 53 binary digits, and with binary exponents between -1024 and 1024. In decimal representation this is close to 16 decimal digits and decimal exponents in the range of -304..304. The upshot of all this is that Perl cannot store a number like 12345678901234567 as a floating point number on such architectures without loss of information. Similarly, decimal strings can represent only those numbers which have a finite decimal expansion. Being strings, and thus of arbitrary length, there is no practical limit for the exponent or number of decimal digits for these numbers. (But realize that what we are discussing the rules for just the I<storage> of these numbers. The fact that you can store such "large" numbers does not mean that the I<operations> over these numbers will use all of the significant digits. See L<"Numeric operators and numeric conversions"> for details.) In fact numbers stored in the native integer format may be stored either in the signed native form, or in the unsigned native form. Thus the limits for Perl numbers stored as native integers would typically be -2**31..2**32-1, with appropriate modifications in the case of 64-bit integers. Again, this does not mean that Perl can do operations only over integers in this range: it is possible to store many more integers in floating point format. Summing up, Perl numeric values can store only those numbers which have a finite decimal expansion or a "short" binary expansion. =head1 Numeric operators and numeric conversions As mentioned earlier, Perl can store a number in any one of three formats, but most operators typically understand only one of those formats. When a numeric value is passed as an argument to such an operator, it will be converted to the format understood by the operator. Six such conversions are possible: native integer --> native floating point (*) native integer --> decimal string native floating_point --> native integer (*) native floating_point --> decimal string (*) decimal string --> native integer decimal string --> native floating point (*) These conversions are governed by the following general rules: =over 4 =item * If the source number can be represented in the target form, that representation is used. =item * If the source number is outside of the limits representable in the target form, a representation of the closest limit is used. (I<Loss of information>) =item * If the source number is between two numbers representable in the target form, a representation of one of these numbers is used. (I<Loss of information>) =item * In C<< native floating point --> native integer >> conversions the magnitude of the result is less than or equal to the magnitude of the source. (I<"Rounding to zero".>) =item * If the C<< decimal string --> native integer >> conversion cannot be done without loss of information, the result is compatible with the conversion sequence C<< decimal_string --> native_floating_point --> native_integer >>. In particular, rounding is strongly biased to 0, though a number like C<"0.99999999999999999999"> has a chance of being rounded to 1. =back B<RESTRICTION>: The conversions marked with C<(*)> above involve steps performed by the C compiler. In particular, bugs/features of the compiler used may lead to breakage of some of the above rules. =head1 Flavors of Perl numeric operations Perl operations which take a numeric argument treat that argument in one of four different ways: they may force it to one of the integer/floating/ string formats, or they may behave differently depending on the format of the operand. Forcing a numeric value to a particular format does not change the number stored in the value. All the operators which need an argument in the integer format treat the argument as in modular arithmetic, e.g., C<mod 2**32> on a 32-bit architecture. C<sprintf "%u", -1> therefore provides the same result as C<sprintf "%u", ~0>. =over 4 =item Arithmetic operators The binary operators C<+> C<-> C<*> C</> C<%> C<==> C<!=> C<E<gt>> C<E<lt>> C<E<gt>=> C<E<lt>=> and the unary operators C<-> C<abs> and C<--> will attempt to convert arguments to integers. If both conversions are possible without loss of precision, and the operation can be performed without loss of precision then the integer result is used. Otherwise arguments are converted to floating point format and the floating point result is used. The caching of conversions (as described above) means that the integer conversion does not throw away fractional parts on floating point numbers. =item ++ C<++> behaves as the other operators above, except that if it is a string matching the format C</^[a-zA-Z]*[0-9]*\z/> the string increment described in L<perlop> is used. =item Arithmetic operators during C<use integer> In scopes where C<use integer;> is in force, nearly all the operators listed above will force their argument(s) into integer format, and return an integer result. The exceptions, C<abs>, C<++> and C<-->, do not change their behavior with C<use integer;> =item Other mathematical operators Operators such as C<**>, C<sin> and C<exp> force arguments to floating point format. =item Bitwise operators Arguments are forced into the integer format if not strings. =item Bitwise operators during C<use integer> forces arguments to integer format. Also shift operations internally use signed integers rather than the default unsigned. =item Operators which expect an integer force the argument into the integer format. This is applicable to the third and fourth arguments of C<sysread>, for example. =item Operators which expect a string force the argument into the string format. For example, this is applicable to C<printf "%s", $value>. =back Though forcing an argument into a particular form does not change the stored number, Perl remembers the result of such conversions. In particular, though the first such conversion may be time-consuming, repeated operations will not need to redo the conversion. =head1 AUTHOR Ilya Zakharevich C<ilya@math.ohio-state.edu> Editorial adjustments by Gurusamy Sarathy <gsar@ActiveState.com> Updates for 5.8.0 by Nicholas Clark <nick@ccl4.org> =head1 SEE ALSO L<overload>, L<perlop>
Close