I'm doing some stuff with the module

Astro::Units whose pod suggests to explicitly use

bignum. The program works fine until I try doing some simple arithmetic. I can't reproduce the error with an SSCE so here are the errors and the calculations causing them:

Deep recursion on subroutine "Math::BigFloat::bdiv" at /5.26.2/Math/BigInt.pm line 1867.
Deep recursion on subroutine "Math::BigInt::Calc::_lsft" at /5.26.2/Math/BigFloat.pm line 1948.
Deep recursion on anonymous subroutine at /5.26.2/Math/BigInt/Calc.pm line 1412.
Deep recursion on subroutine "Math::BigInt::bdiv" at /5.26.2/Math/BigInt.pm line 54.

Here's the math and the results when loading and not loading (but not directly using) both bignum and Astro::Units:

`perl -le '$Da=406700; $Dp=356400; $Dm=361918; $pct = ($Da - $Dm) / ($D
+a - $Dp); print $pct'
`

0.890298210735586

`perl -Mbignum -le '$Da=406700; $Dp=356400; $Dm=361918; $pct = ($Da - $
+Dm) / ($Da - $Dp); print $pct'
`

0.8902982107355864811133200795228628230616

`perl -Mbignum -MAstro::Units -le '$Da=406700; $Dp=356400; $Dm=361918;
+$pct = ($Da - $Dm) / ($Da - $Dp); print $pct'
`

0.8902982

`perl -MAstro::Units -le '$Da=406700; $Dp=356400; $Dm=361918; $pct = ($
+Da - $Dm) / ($Da - $Dp); print $pct'
`

0.890298210735586

Can anyone see what's going on here? That third result is puzzling. What could be causing such errors? Thanks!

Comment onDeep recursion on subroutine with bignum and Astro::UnitsSelectorDownloadCode