Lines Matching defs:round_mode
220 # $round_mode is 'even', 'odd', '+inf', '-inf', 'zero', 'trunc', or 'common'.
221 our $round_mode = 'even';
251 bless \$round_mode, $class;
255 return $round_mode;
259 $rnd_mode = (ref $_[0]) -> round_mode($_[1]);
276 sub round_mode {
284 croak("The value for 'round_mode' must be defined")
289 if (ref($self) && exists $self -> {round_mode}) {
290 $self->{round_mode} = $m;
293 ${"${class}::round_mode"} = $m;
300 if (ref($self) && exists $self -> {round_mode}) {
301 return $self->{round_mode};
304 my $m = ${"${class}::round_mode"};
305 return defined($m) ? $m : $round_mode;
584 round_mode div_scale
613 round_mode div_scale
642 $mode = $class -> round_mode() unless defined $mode;
663 $mode = $class -> round_mode() unless defined $mode;
4248 # $r round_mode, if given by caller
4294 $r = $class -> round_mode() unless defined $r;
5566 if ($param eq 'round_mode') {
5567 $class -> round_mode(shift);
5739 # $r round_mode, if given by caller
5779 $r = $class -> round_mode() unless defined $r;
6524 Math::BigInt->round_mode(); # get class rounding mode
6525 Math::BigInt->round_mode($m); # set global round mode, must be one of
6822 C<accuracy>, C<precision> and C<round_mode>. Please see the section about
6906 =item round_mode()
6979 round_mode RW Global round mode
7719 Math::BigFloat->round_mode('even');
7926 $x->round($A,$P,$round_mode);
7929 C<$round_mode>.
8699 * you can set/get the global R by using Math::SomeClass->round_mode()
8700 or by setting $Math::SomeClass::round_mode
8704 * to manually round a number, call $x->round($A,$P,$round_mode);
8884 Math::BigFloat->round_mode('odd'); # round to odd
8887 Math::BigFloat->round_mode('odd'); # round to odd
9045 our $round_mode = 'even';