Lines Matching refs:badd
48 '+=' => sub { $_[0]->badd($_[1]); },
84 $c->bneg()->badd($_[1]) :
86 '+' => sub { $_[0]->copy()->badd($_[1]); },
1054 sub badd
1067 return $x if $x->modify('badd');
1068 return $upgrade->badd($upgrade->new($x),$upgrade->new($y),@r) if defined $upgrade &&
1144 $x->badd($y,@r); # badd does not leave internal zeros
1146 $x; # already rounded by badd() or no round necc.
1169 $x->badd($self->bone(),$a,$p,$r); # badd does round
1185 return $x->badd($self->bone('-'),@r) unless $x->{sign} eq '+'; # inf/NaN
2222 # $x->badd(1); => ref x, scalar y
2223 # Class->badd(1,2); => classname x (scalar), scalar x, scalar y
2224 # Class->badd( Class->(1),2); => classname x (scalar), ref x, scalar y
2225 # Math::BigInt::badd(1,2); => scalar x, scalar y
2228 # badd($class,1) is not supported (it should, eventually, try to add undef)
2626 $x->badd($y); # addition (add $y to $x)
3052 =head2 badd
3054 $x->badd($y); # addition (add $y to $x)
3523 R (shift right by one for binary operations like badd). P is used only if
3672 $x = Math::BigInt->badd(4,5) # BigInt "9"
3799 addition, the sub-class must use the same name, in this case badd(). The
4132 result. This is to be consistent with C<badd()> etc. The first three will
4177 $float = $mbf + $mbi; # $mbf->badd()
4179 $integer = $mbi + $mbf; # $mbi->badd()