The Math::BigFloat precision that you specify applies only to Math::BigFloat objects.use Math::BigFloat; Math::BigFloat->precision(-4); for ($m = 1; $m <= 3; $m++) { for ($n = 1; $n <= 3; $n++) { my $x = Math::BigFloat->new($m * $n * rand(3)); print $x, " "; } print ("\n"); }
In reply to Re: Math::BigFloat question (precision)
by syphilis
in thread Math::BigFloat question (precision)
by fiddler42
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |