=encoding euc-jp
=head1 NAME
=begin original
bigint - Transparent BigInteger support for Perl
=end original
bigint - Perl 用の透過的な BigInteger 対応
=head1 SYNOPSIS
use bigint;
$x = 2 + 4.5,"\n"; # BigInt 6
print 2 ** 512,"\n"; # really is what you think it is
print inf + 42,"\n"; # inf
print NaN * 7,"\n"; # NaN
print hex("0x1234567890123490"),"\n"; # Perl v5.9.4 or later
{
no bigint;
print 2 ** 256,"\n"; # a normal Perl scalar now
}
# Note that this will be global:
use bigint qw/hex oct/;
print hex("0x1234567890123490"),"\n";
print oct("01234567890123490"),"\n";
=head1 DESCRIPTION
=begin original
All operators (including basic math operations) are overloaded. Integer
constants are created as proper BigInts.
=end original
(基本算術演算子を含む)全ての演算子がオーバーロードされます。
整数定数は適切な BigInt として作成されます。
=begin original
Floating point constants are truncated to integer. All parts and results of
expressions are also truncated.
=end original
浮動小数点数定数は整数に切り詰められます。
式の全ての部分と結果も切り詰められます。
=begin original
Unlike L, this pragma creates integer constants that are only
limited in their size by the available memory and CPU time.
=end original
L と違って、このプラグマは利用可能なメモリと CPU 時間によってのみ
制限されるサイズの整数定数を作成します。
=head2 use integer vs. use bigint
(use integer 対 use bigint)
=begin original
There is one small difference between C