You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Decimal is arbitrary-precision; the thing that "overflows" is the literal (which is interpreted as a Double). But I wouldn't expect it to truncate either. @jckarter, do you understand what's going on?
You described it accurately. Swift's literal initialization model for decimal literals is to pass them as floats. Ideally Decimal would not have provided this initializer until we had proper support for accurate decimal literals, but that's ultimately SR-3317.
Additional Detail from JIRA
md5: fa3bc5022050cf27fced9d845fe3a0f4
duplicates:
Issue Description:
Discovery and elaboration here: https://stackoverflow.com/a/45584335/3939277
Quick example:
The text was updated successfully, but these errors were encountered: