Details
Description
Using MathContext.DECIMAL128 should give a more usable scale and precision to the results.
Current behavior
254403453878 / 21870000000 returns 12
and
254403453878.0001 / 21870000000 returns 11.6325
Improved behavior:
254403453878 / 21870000000 returns 11.632531
and
254403453878.0001 / 21870000000 returns 11.632531
We should also investigate what the impact of this change will be on users who may be relying on our current behavior.
Reference: This enhancement was suggested by Issue Tracker Issue 175485, contributed by Greg Haber
Attachments
Issue Links
- relates to
-
TEIID-7 Control of BigDecimal precision and scale
- Resolved