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
40> truelyLeastDecimal()
$R3: Decimal = 0.000000
41> print(truelyLeastDecimal())
0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001
42> p(truelyLeastDecimal())
Execution interrupted. Enter code to recover and continue.
Enter LLDB commands to investigate (type :help for assistance.)
Additional Detail from JIRA
md5: f8e60ccf11f2fdc6d95d64e7bcbd0e41
relates to:
Issue Description:
`Decimal.leastNonzeroMagnitude` and `Decimal.leastNormalMagnitude` are set -127 as their exponents.
https://github.com/apple/swift-corelibs-foundation/blob/ee61823ae71f4c4f9ca157fd290c4b7de915b2a4/Foundation/Decimal.swift#L120
However, you can make less value than least magnitude by such code below.
NSDecimalNumber defines its exponent's range is down to -128.
https://developer.apple.com/documentation/foundation/nsdecimalnumber
Thus `Foundation.Decimal` should follow it. Isn't it?
The text was updated successfully, but these errors were encountered: