Skip to content

Conversation

@toddobryan
Copy link

Issue #16 BigInt.pow cannot take negative exponents, causing any toDouble() on a BigDecimal to fail if the scale exceeds the precision.

Fixed by going directly to math.pow(10.0, scale.toDouble()) instead of trying to go through BigInt first.

Includes really simple test case that fails without the change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant