Server IP : 170.150.155.74 / Your IP : 3.149.235.138 Web Server : Apache/2.4.53 (Debian) System : Linux b22bf132354b 5.4.0-162-generic #179-Ubuntu SMP Mon Aug 14 08:51:31 UTC 2023 x86_64 User : www-data ( 33) PHP Version : 7.4.29 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/share/perl/5.32.1/Math/BigInt/ |
Upload File : |
#!perl package Math::BigInt::Trace; require 5.010; use strict; use warnings; use Exporter; use Math::BigInt; our ($accuracy, $precision, $round_mode, $div_scale); our @ISA = qw(Exporter Math::BigInt); our $VERSION = '0.51'; use overload; # inherit overload from Math::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]; my $self = Math::BigInt->new($value, $a, $p, $round_mode); bless $self, $class; print "MBI new '$value' => '$self' (", ref($self), ")"; return $self; } sub import { print "MBI import ", join(' ', @_); my $self = shift; Math::BigInt::import($self, @_); # need it for subclasses # $self->export_to_level(1, $self, @_); # need this ? @_ = (); } 1;