Provided by:
manpages-zh_1.5.2-1_all 
NAME
perlnumber - Perl
SYNOPSIS
$n = 1234; #
$n = 0b1110011; #
$n = 01234; #
$n = 0x1234; #
$n = 12.34e-56; #
$n = "-12.34e56"; #
$n = "1234"; #
DESCRIPTION
Perl
Perlp-adic
Storing numbers
Per"Native""Native""12.34e-56"Native perl C
"native""native"2"native"0.9"native"0.9
0.1110011001100...
1100 53-10241024(-102410241153646416-30430412345678901234567
.,,.(..,""
"Native"Perl"Native"-2**31..2**32-164Perl
Perl
Numeric operators and numeric conversions
Perl
native --> native (*)
native -->
native --> native (*)
native --> decimal string (*)
--> native
--> native (*)
o
o
o
o "native --> native " ("Rounding to zero".)
o " --> native " " --> native_ --> native_".
"0.99999999999999999999" 10
: "(*)" CCBugs
Flavors of Perl numeric operations
Perl
32232 ("mod 2**32") "sprintf "%u", -1" "sprintf "%u", ~0"
Arithmetic operators
"+" "-" "*" "/" "%" "==" "!=" ">" "<" ">=" "<=" "-" "abs" and
"--"
++ "++" "/^[a-zA-Z]*[0-9]*\z/" perlop
"use integer"
"use integer;" "abs", "++" "--"
Other mathematical operators
"**", "sin" "exp"
Bitwise operators
"use integer"
"sysread"
"printf "%s", $value"
Perl
AUTHOR
Ilya Zakharevich "ilya@math.ohio-state.edu"
Gurusamy Sarathy <gsar@ActiveState.com>
Nicholas Clark <nick@ccl4.org> 5.8.0
SEE ALSO
overload, perlop