Subject: | Math::BigFloat -> bmod() does unnecessary work |
Internally, Math::BigFloat -> new("5e6") -> bmod("2e6") is computed as "5000000 mod 2000000". The code should be optimized so that the mantissas aren't made larger than strictly necessary. In the above example, this should be computed as "1000000 * (5 mod 2)".