Searched refs:round_mode (Results 1 - 21 of 21) sorted by relevance

/osnet-11/usr/src/cmd/perl/5.8.4/distrib/t/lib/Math/BigFloat/
H A DSubclass.pm11 $accuracy $precision $round_mode $div_scale);
21 $round_mode = 'even';
33 my $self = Math::BigFloat->new($value,$a,$p,$round_mode);
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/lib/Math/BigFloat/
H A DTrace.pm11 $accuracy $precision $round_mode $div_scale);
21 $round_mode = 'even';
32 my $self = Math::BigFloat->new($value,$a,$p,$round_mode);
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/lib/Math/BigInt/
H A DTrace.pm11 $accuracy $precision $round_mode $div_scale);
21 $round_mode = 'even';
32 my $self = Math::BigInt->new($value,$a,$p,$round_mode);
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/lib/bignum/t/
H A Dbignum.t57 ok (bignum->round_mode(),'even');
58 ok (bignum->round_mode('odd'),'odd');
59 ok (bignum->round_mode(),'odd');
H A Dbigrat.t61 ok (bigrat->round_mode(),'even');
62 ok (bigrat->round_mode('odd'),'odd');
63 ok (bigrat->round_mode(),'odd');
H A Dbigint.t74 ok (bigint->round_mode(),'even');
75 ok (bigint->round_mode('odd'),'odd');
76 ok (bigint->round_mode(),'odd');
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/t/lib/Math/BigRat/
H A DTest.pm10 $accuracy $precision $round_mode $div_scale);
19 $round_mode = 'even';
33 # my $self = Math::BigFloat->new($value,$a,$p,$round_mode);
56 #print "$a $accuracy $precision $round_mode\n";
57 Math::BigFloat->round_mode($round_mode);
68 Math::BigFloat->round_mode($round_mode);
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/lib/Math/BigInt/t/
H A Dmbimbf.t3 # test rounding, accuracy, precicion and fallback, round_mode and mixing
52 Math::BigInt->round_mode('even'); # reset for tests
53 Math::BigFloat->round_mode('even'); # reset for tests
58 my $x = eval '$mbi->round_mode("huhmbi");';
62 $x = eval '$mbf->round_mode("huhmbf");';
74 $mbi->round_mode('odd'); ok ($Math::BigInt::rnd_mode,'odd');
75 $mbf->round_mode('odd'); ok ($Math::BigInt::rnd_mode,'odd');
H A Dconfig.t39 ok ($cfg->{round_mode},'even');
63 ok ($cfg->{round_mode},'even');
76 round_mode => 'zero',
H A Dmbimbf.inc1 # test rounding, accuracy, precicion and fallback, round_mode and mixing
20 ok (${"$mbi\::round_mode"},'even');
21 ok ($mbi->round_mode(),'even');
28 ok (${"$mbf\::round_mode"},'even');
29 ok ($mbf->round_mode(),'even');
37 ok ($class->round_mode(),'even');
43 ok ($class->round_mode('odd'),'odd');
44 $class->round_mode('even'); ok ($class->round_mode(),'even');
84 # round_mode
[all...]
H A Dupgrade.inc51 my ($f,$z,$a,$exp,@a,$m,$e,$round_mode,$expected_class);
63 $round_mode = $_; $round_mode =~ s/^\$/$class\->/; next;
119 $try .= "$round_mode; \$x->bround(\$y);";
1360 $round_mode('trunc')
1378 $round_mode('zero')
1389 $round_mode('+inf')
1400 $round_mode('-inf')
1411 $round_mode('odd')
1422 $round_mode('eve
[all...]
H A Dbigintpm.inc41 my ($f,$z,$a,$exp,@a,$m,$e,$round_mode,$expected_class);
53 $round_mode = $_; $round_mode =~ s/^\$/$class\->/; next;
99 $try .= "$round_mode; \$x->bround(\$y);";
2093 $round_mode('trunc')
2111 $round_mode('zero')
2122 $round_mode('+inf')
2133 $round_mode('-inf')
2144 $round_mode('odd')
2155 $round_mode('eve
[all...]
H A Dbigfltpm.inc19 $setup = $_; $setup =~ s/\$/\$${class}::/g; # round_mode, div_scale
557 $round_mode = "trunc"
570 $round_mode = "zero"
579 $round_mode = "+inf"
588 $round_mode = "-inf"
597 $round_mode = "odd"
606 $round_mode = "even"
616 $round_mode = "trunc"
652 $round_mode = "zero"
670 $round_mode
[all...]
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/t/lib/Math/BigInt/
H A DSubclass.pm13 $accuracy $precision $round_mode $div_scale);
24 $round_mode = 'even';
36 my $self = Math::BigInt->new($value,$a,$p,$round_mode);
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/lib/Math/BigRat/t/
H A Dbigratpm.inc19 $setup = $_; $setup =~ s/\$/\$${class}::/g; # round_mode, div_scale
557 $div_scale = 40; $round_mode = 'even'
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/lib/Math/
H A DBigInt.pm27 use vars qw/$round_mode $accuracy $precision $div_scale $rnd_mode
140 $round_mode = 'even'; # one of 'even', 'odd', '+inf', '-inf', 'zero' or 'trunc'
168 sub TIESCALAR { my ($class) = @_; bless \$round_mode, $class; }
169 sub FETCH { return $round_mode; }
170 sub STORE { $rnd_mode = $_[0]->round_mode($_[1]); }
185 sub round_mode subroutine
188 # make Class->round_mode() work
198 return ${"${class}::round_mode"} = $m;
200 ${"${class}::round_mode"};
372 upgrade downgrade precision accuracy round_mode div_scal
[all...]
H A DBigFloat.pm23 use vars qw/$AUTOLOAD $accuracy $precision $div_scale $round_mode $rnd_mode
41 $round_mode = 'even'; # one of 'even', 'odd', '+inf', '-inf', 'zero' or 'trunc'
75 sub TIESCALAR { my ($class) = @_; bless \$round_mode, $class; }
76 sub FETCH { return $round_mode; }
77 sub STORE { $rnd_mode = $_[0]->round_mode($_[1]); }
98 accuracy precision div_scale round_mode fneg fabs fnot
1947 my ($scale,$mode) = $x->_scale_p($self->precision(),$self->round_mode(),@_);
2058 my ($scale,$mode) = $x->_scale_a($self->accuracy(),$self->round_mode(),@_);
2570 Math::BigFloat->round_mode(); # rounding mode
2694 Math::BigFloat->round_mode('zer
[all...]
H A DBigRat.pm23 $accuracy $precision $round_mode $div_scale $_trap_nan $_trap_inf);
37 $round_mode = 'even';
1523 round_mode RW Global round mode
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/lib/
H A Dbigrat.pm16 my @faked = qw/round_mode accuracy precision div_scale/;
H A Dbigint.pm17 my @faked = qw/round_mode accuracy precision div_scale/;
H A Dbignum.pm16 my @faked = qw/round_mode accuracy precision div_scale/;

Completed in 63 milliseconds