Skip to content

Pow throws Overflow in special case #69

@runforlife

Description

@runforlife

The next code throws Overflow error
BigDecimalMath.pow(new BigDecimal("85"), new BigDecimal("483379540.5878915618046344614959831"), MathContext.DECIMAL128)

expected result
new BigDecimal("8.191399333915731143433650968385840E+932641633")

In attachment you can find the fix (Intellij IDEA patch file)
bugfix_pow_special_case_overflow.patch

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions