Lines Matching defs:bround
425 $x = $x -> bround($a) if defined $a;
634 # used by bround() and bfround(), may return undef for scale (means no op)
655 # used by bround() and bfround(), may return undef for scale (means no op)
1069 return $self -> bround(@r);
1079 return $self -> bround(@r);
4299 # now round, by calling either bround or bfround:
4301 $self = $self->bround(int($a), $r)
4308 # bround() or bfround() already called bnorm() if nec.
4312 sub bround {
4322 return $x if !defined $scale || $x->modify('bround'); # no-op
4426 $x = $x->bround($x->length()-$scale, $mode) if $scale > 0;
4438 $x->bround(@_);
5712 # internal, used by bround() to scan for non-zeros after a '5'
6650 $x->bround($n); # accuracy: preserve $n digits
6842 L</bround()> or L</bfround()> or by passing the desired accuracy to the method
6848 print scalar $x->copy()->bdiv($y)->bround(2); # prints 4300
7931 =item bround()
7933 $x->bround($N); # accuracy: preserve $N digits
8519 * bround($a) rounds to $a significant digits
8524 of bround or bfround, and never for Math::BigInt (not implemented)
8641 against overflows. You must explicitly call bround(), bfround() or
8651 print $x->copy()->bround(3); # 12.3 (but A is now 3!)
8695 bround() is for accuracy rounding, while bfround() is for precision
8711 $x->bround(4);
8882 is ($x->copy()->bround(),123.4); # even rounding
8883 print $x->copy()->bround(),"\n"; # 123.4
8885 print $x->copy()->bround(),"\n"; # 123.5
8888 print $x->copy()->bround(),"\n"; # 123.46
8889 $y = $x->copy()->bround(4),"\n"; # A = 4: 123.4
8895 print $x->copy()->bround(),"\n"; # 123.46