summaryrefslogtreecommitdiff
path: root/cpan/Math-BigInt
diff options
context:
space:
mode:
authorSteve Hay <steve.m.hay@googlemail.com>2016-12-07 08:25:50 +0000
committerSteve Hay <steve.m.hay@googlemail.com>2016-12-07 23:19:24 +0000
commitcbc87e04ce11c9be486d663c844e6e3c9ec5eb98 (patch)
tree3d4784be2c9c163246dd25dbfeff51c762af5d6b /cpan/Math-BigInt
parente8eb4dddab073d323ac5e25364f103ff74bec7b8 (diff)
downloadperl-cbc87e04ce11c9be486d663c844e6e3c9ec5eb98.tar.gz
Upgrade Math::BigInt from version 1.999802 to 1.999803
Diffstat (limited to 'cpan/Math-BigInt')
-rw-r--r--cpan/Math-BigInt/lib/Math/BigFloat.pm3
-rw-r--r--cpan/Math-BigInt/lib/Math/BigInt.pm3
-rw-r--r--cpan/Math-BigInt/lib/Math/BigInt/Calc.pm3
-rw-r--r--cpan/Math-BigInt/lib/Math/BigInt/CalcEmu.pm3
-rw-r--r--cpan/Math-BigInt/lib/Math/BigInt/Lib.pm3
-rw-r--r--cpan/Math-BigInt/t/Math/BigFloat/#Subclass.pm#49
-rw-r--r--cpan/Math-BigInt/t/Math/BigInt/BareCalc.pm2
-rw-r--r--cpan/Math-BigInt/t/calling.t3
8 files changed, 56 insertions, 13 deletions
diff --git a/cpan/Math-BigInt/lib/Math/BigFloat.pm b/cpan/Math-BigInt/lib/Math/BigFloat.pm
index 415e0827fb..eee9897703 100644
--- a/cpan/Math-BigInt/lib/Math/BigFloat.pm
+++ b/cpan/Math-BigInt/lib/Math/BigFloat.pm
@@ -19,8 +19,7 @@ use warnings;
use Carp ();
use Math::BigInt ();
-our $VERSION = '1.999802';
-$VERSION = eval $VERSION;
+our $VERSION = '1.999803';
require Exporter;
our @ISA = qw/Math::BigInt/;
diff --git a/cpan/Math-BigInt/lib/Math/BigInt.pm b/cpan/Math-BigInt/lib/Math/BigInt.pm
index 39001e9f44..bd98fda1a0 100644
--- a/cpan/Math-BigInt/lib/Math/BigInt.pm
+++ b/cpan/Math-BigInt/lib/Math/BigInt.pm
@@ -20,8 +20,7 @@ use warnings;
use Carp ();
-our $VERSION = '1.999802';
-$VERSION = eval $VERSION;
+our $VERSION = '1.999803';
our @ISA = qw(Exporter);
our @EXPORT_OK = qw(objectify bgcd blcm);
diff --git a/cpan/Math-BigInt/lib/Math/BigInt/Calc.pm b/cpan/Math-BigInt/lib/Math/BigInt/Calc.pm
index aca84b5361..c0a089b585 100644
--- a/cpan/Math-BigInt/lib/Math/BigInt/Calc.pm
+++ b/cpan/Math-BigInt/lib/Math/BigInt/Calc.pm
@@ -7,8 +7,7 @@ use warnings;
use Carp;
use Math::BigInt::Lib;
-our $VERSION = '1.999802';
-$VERSION = eval $VERSION;
+our $VERSION = '1.999803';
our @ISA = ('Math::BigInt::Lib');
diff --git a/cpan/Math-BigInt/lib/Math/BigInt/CalcEmu.pm b/cpan/Math-BigInt/lib/Math/BigInt/CalcEmu.pm
index 45b47c3b90..13cc8e8ff8 100644
--- a/cpan/Math-BigInt/lib/Math/BigInt/CalcEmu.pm
+++ b/cpan/Math-BigInt/lib/Math/BigInt/CalcEmu.pm
@@ -4,8 +4,7 @@ use 5.006001;
use strict;
use warnings;
-our $VERSION = '1.999802';
-$VERSION = eval $VERSION;
+our $VERSION = '1.999803';
package Math::BigInt;
diff --git a/cpan/Math-BigInt/lib/Math/BigInt/Lib.pm b/cpan/Math-BigInt/lib/Math/BigInt/Lib.pm
index 8bd40384e3..32ccef9931 100644
--- a/cpan/Math-BigInt/lib/Math/BigInt/Lib.pm
+++ b/cpan/Math-BigInt/lib/Math/BigInt/Lib.pm
@@ -4,8 +4,7 @@ use 5.006001;
use strict;
use warnings;
-our $VERSION = '1.999802';
-$VERSION = eval $VERSION;
+our $VERSION = '1.999803';
use Carp;
diff --git a/cpan/Math-BigInt/t/Math/BigFloat/#Subclass.pm# b/cpan/Math-BigInt/t/Math/BigFloat/#Subclass.pm#
new file mode 100644
index 0000000000..f35e26710c
--- /dev/null
+++ b/cpan/Math-BigInt/t/Math/BigFloat/#Subclass.pm#
@@ -0,0 +1,49 @@
+#!perl
+
+# for testing subclassing Math::BigFloat
+
+package Math::BigFloat::Subclass;
+
+require 5.006;
+
+use strict;
+use warnings;
+
+use Exporter;
+use Math::BigFloat 1.38;
+
+our ($accuracy, $precision, $round_mode, $div_scale);
+
+our @ISA = qw(Exporter Math::BigFloat);
+
+our $VERSION = "0.06";
+
+use overload; # inherit overload from BigInt
+
+# Globals
+$accuracy = $precision = undef;
+$round_mode = 'even';
+$div_scale = 40;
+
+sub new {
+ my $proto = shift;
+ my $class = ref($proto) || $proto;
+
+ my $value = shift;
+ my $a = $accuracy; $a = $_[0] if defined $_[0];
+ my $p = $precision; $p = $_[1] if defined $_[1];
+ # Store the floating point value
+ my $self = Math::BigFloat->new($value, $a, $p, $round_mode);
+ bless $self, $class;
+ $self->{'_custom'} = 1; # make sure this never goes away
+ return $self;
+}
+
+BEGIN {
+ *objectify = \&Math::BigInt::objectify;
+ # to allow Math::BigFloat::Subclass::bgcd( ... ) style calls
+ *bgcd = \&Math::BigFloat::bgcd;
+ *blcm = \&Math::BigFloat::blcm;
+}
+
+1;
diff --git a/cpan/Math-BigInt/t/Math/BigInt/BareCalc.pm b/cpan/Math-BigInt/t/Math/BigInt/BareCalc.pm
index fd4f3859ad..86522d5d63 100644
--- a/cpan/Math-BigInt/t/Math/BigInt/BareCalc.pm
+++ b/cpan/Math-BigInt/t/Math/BigInt/BareCalc.pm
@@ -5,7 +5,7 @@ package Math::BigInt::BareCalc;
use strict;
use warnings;
-our $VERSION = '1.999801';
+our $VERSION = '1.999803';
# Package to to test Bigint's simulation of Calc
diff --git a/cpan/Math-BigInt/t/calling.t b/cpan/Math-BigInt/t/calling.t
index 3b23eabfc4..56f0b46d8b 100644
--- a/cpan/Math-BigInt/t/calling.t
+++ b/cpan/Math-BigInt/t/calling.t
@@ -6,8 +6,7 @@ use strict;
use warnings;
use lib 't';
-my $VERSION = '1.999800'; # adjust manually to match latest release
-$VERSION = eval $VERSION;
+my $VERSION = '1.999803'; # adjust manually to match latest release
use Test::More tests => 5;