Given the fact that this bug induces wildly incorrect results for a type that is the preferred option for currency calculations, shouldn't this be at least a high priority? This bug is in the current production release of Swift and will be affecting anybody running a production system.
So master (JIRA User) my understanding is that anybody using Decimal in production in 4.1.2 should rewrite their code to avoid the Decimal type or otherwise remove it from a production environment? 4.2 won’t be released until September.
Linux / Swift 4.1
Additional Detail from JIRA
`Decimal(5538) + Decimal(2880.4)` results incorrectly in 1864.8.
`NSDecimalNumber(floatLiteral: 5538).adding(NSDecimalNumber(floatLiteral: 2880.4))` produces the same incorrect result.
The text was updated successfully, but these errors were encountered: