Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Done
-
Jena 3.17.0, Jena 4.0.0, Jena 4.1.0
-
None
Description
Report from users@ : 2021-06-04
As a result of JENA-1943, Java BigDecimal division will cause an ArithmeticException when then is no exact decimal result. In the report, division by 3 will mean no exact answer.
But the change in JENA-1943 (arbitray precision for exact answers) is also desirable. Simply having a quite large division precise (e.g. 100) isn't ideal because e.g. 1/3 returns 0.333333333333333333333333 (precision of 24) currently, not 0.3333...... length about 100.
Also, there is an unnecessary canonicalization of a value that is only used in further calculation so the lexical form isn't needed.
Attachments
Issue Links
- split to
-
JENA-2122 Add MOD and IDIV
- Closed