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
[Foundation] Fix two Decimal members with respect to NaN (#25698)
* Update Decimal.swift
Fix `Decimal.magnitude` so that `Decimal.nan.magnitude` is no longer incorrectly `0`.
Port changes from swiftlang/swift-corelibs-foundation#1759, crucially correcting an error where `(0 as Decimal).doubleValue` returned `.nan`.
* [gardening] Zap indentation error
* Add test for `Decimal.nan.magnitude`
* Apply reviewer suggestion
Clean up `doubleValue`
0 commit comments