Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Invalid
-
1.12.2
-
None
-
None
Description
Hi,
I have following problem:
This query:
select ((CAST(28604 as decimal(38,4)))/(cast(451 as decimal(38,4))) - 1121)/10 ;
Gives following answer:
-105.757650000000000000
Correct answer should be:
-105,75764966740576496674057649667
Why the result is rounded to 5th decimal place ?
Saving both values back to Decimal(38,4) column will give different results: -105.7577 vs -105.7576 (where second one is correct)
Attachments
Issue Links
- relates to
-
FLINK-22586 Improve precision derivation for decimal arithmetics
- Closed