Problems? Is your data what you think it is? | |
PerlMonks |
Math::FixedPrecision and bignum clashby mje (Curate) |
on Oct 08, 2014 at 09:55 UTC ( [id://1103151]=perlquestion: print w/replies, xml ) | Need Help?? |
mje has asked for the wisdom of the Perl Monks concerning the following question: I've come across an issue in some test code which I've reduced down. This initially came about because one test module used Math::FixedPrecision and another test module used bignum. The two were not used together until a new test was written which needed both and then stringifcation of Math::FixedPrecision started failing with Can't use an undefined value as an ARRAY reference. The reduced version is just to simplify the problem, it serves no useful purpose. I also don't understand why "no bignum" does not fix the issue. This works:
outputting
and this does not work
outputting
Notice the lack of a mantissa in the second case which is actually what causes the final error in Math::BigInt::Calc. Any ideas?
Back to
Seekers of Perl Wisdom
|
|