Linux cpanel2.daytoncreative.net 2.6.32-754.29.2.el6.x86_64 #1 SMP Tue May 12 17:39:04 UTC 2020 x86_64
Apache/2.4.43 (cPanel) OpenSSL/1.1.1g mod_bwlimited/1.4
Server IP : 70.62.220.67 & Your IP : 216.73.216.193
Domains :
Cant Read [ /etc/named.conf ]
User : michaelgreg
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
log /
perl-5.20.2 /
dist /
bignum /
t /
Delete
Unzip
Name
Size
Permission
Date
Action
big_e_pi.t
395
B
-r--r--r--
2014-12-27 11:48
bigexp.t
527
B
-r--r--r--
2014-12-27 11:48
bigint.t
2.08
KB
-r--r--r--
2014-12-27 11:48
bignum.t
1.89
KB
-r--r--r--
2014-12-27 11:48
bigrat.t
1.71
KB
-r--r--r--
2014-12-27 11:48
bii_e_pi.t
323
B
-r--r--r--
2014-12-27 11:48
biinfnan.t
180
B
-r--r--r--
2014-12-27 11:48
bir_e_pi.t
483
B
-r--r--r--
2014-12-27 11:48
bn_lite.t
458
B
-r--r--r--
2014-12-27 11:49
bninfnan.t
180
B
-r--r--r--
2014-12-27 11:48
br_lite.t
461
B
-r--r--r--
2014-12-27 11:49
brinfnan.t
180
B
-r--r--r--
2014-12-27 11:48
in_effect.t
749
B
-r--r--r--
2014-12-27 11:48
infnan.inc
1.34
KB
-r--r--r--
2014-12-27 11:48
option_a.t
391
B
-r--r--r--
2014-12-27 11:48
option_l.t
1.18
KB
-r--r--r--
2014-12-27 11:49
option_p.t
307
B
-r--r--r--
2014-12-27 11:48
overrides.t
3.57
KB
-r--r--r--
2014-12-27 11:48
ratopt_a.t
462
B
-r--r--r--
2014-12-27 11:48
scope_f.t
859
B
-r--r--r--
2014-12-27 11:48
scope_i.t
891
B
-r--r--r--
2014-12-27 11:48
scope_r.t
859
B
-r--r--r--
2014-12-27 11:48
Save
Rename
#!/usr/bin/perl -w ############################################################################### use strict; use Test::More tests => 35; use bignum qw/oct hex/; ############################################################################### # general tests my $x = 5; like (ref($x), qr/^Math::BigInt/); # :constant is (2 + 2.5,4.5); $x = 2 + 3.5; is (ref($x),'Math::BigFloat'); is (2 * 2.1,4.2); $x = 2 + 2.1; is (ref($x),'Math::BigFloat'); $x = 2 ** 255; like (ref($x), qr/^Math::BigInt/); # see if Math::BigInt constant and upgrading works is (Math::BigInt::bsqrt('12'),'3.464101615137754587054892683011744733886'); is (sqrt(12),'3.464101615137754587054892683011744733886'); is (2/3,"0.6666666666666666666666666666666666666667"); #is (2 ** 0.5, 'NaN'); # should be sqrt(2); is (12->bfac(),479001600); # see if Math::BigFloat constant works # 0123456789 0123456789 <- default 40 # 0123456789 0123456789 is (1/3, '0.3333333333333333333333333333333333333333'); ############################################################################### # accuracy and precision is (bignum->accuracy(), undef); is (bignum->accuracy(12),12); is (bignum->accuracy(),12); is (bignum->precision(), undef); is (bignum->precision(12),12); is (bignum->precision(),12); is (bignum->round_mode(),'even'); is (bignum->round_mode('odd'),'odd'); is (bignum->round_mode(),'odd'); ############################################################################### # hex() and oct() my $c = 'Math::BigInt'; is (ref(hex(1)), $c); is (ref(hex(0x1)), $c); is (ref(hex("af")), $c); is (hex("af"), Math::BigInt->new(0xaf)); is (ref(hex("0x1")), $c); is (ref(oct("0x1")), $c); is (ref(oct("01")), $c); is (ref(oct("0b01")), $c); is (ref(oct("1")), $c); is (ref(oct(" 1")), $c); is (ref(oct(" 0x1")), $c); is (ref(oct(0x1)), $c); is (ref(oct(01)), $c); is (ref(oct(0b01)), $c); is (ref(oct(1)), $c);