Lines Matching refs:Math
12 use Math::BigInt only => 'Calc';
13 use Math::BigFloat;
15 our $mbi = 'Math::BigInt';
16 our $mbf = 'Math::BigFloat';
21 # guaranteed in the Math::Big(Int|Float) (unless subclass chooses to support
24 Math::BigInt->round_mode("even"); # reset for tests
25 Math::BigFloat->round_mode("even"); # reset for tests
27 is($Math::BigInt::rnd_mode, "even", '$Math::BigInt::rnd_mode = "even"');
28 is($Math::BigFloat::rnd_mode, "even", '$Math::BigFloat::rnd_mode = "even"');
39 $x = eval '$Math::BigInt::rnd_mode = "huhmbi";';
41 '$Math::BigInt::rnd_mode = "huhmbi"');
42 $x = eval '$Math::BigFloat::rnd_mode = "huhmbf";';
44 '$Math::BigFloat::rnd_mode = "huhmbf"');
48 is($Math::BigInt::rnd_mode, 'odd', '$Math::BigInt::rnd_mode = "odd"');
51 is($Math::BigInt::rnd_mode, 'odd', '$Math::BigInt::rnd_mode = "odd"');
53 foreach my $class (qw/Math::BigInt Math::BigFloat/) {
60 foreach my $class (qw/Math::BigInt Math::BigFloat/) {
128 # bug with blog(Math::BigFloat, Math::BigInt)
129 $x = Math::BigFloat->new(100);
130 $x = $x->blog(Math::BigInt->new(10));
132 is($x, 2, 'bug with blog(Math::BigFloat, Math::BigInt)');
136 $x = Math::BigFloat->new("1." . ("0" x $i) . "1");