<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hello, this is my first message to swift-users so please let me know if I should be doing anything differently.<div class=""><br class=""></div><div class="">I'm working with an app that already uses NSDecimalNumber, mostly for currency and formatting, and we have many extensions for NSDecimalNumber written in Obj-C.</div><div class=""><br class=""></div><div class="">Swift 3 introduced the Decimal class, which at first I thought was supposed to 'replace' NSDecimalNumber in Swift, like Error is the new NSError, etc. However, upon further investigation, it's not clear to me that this is actually the case. It appears that Swift 3's Decimal is more just an NSDecimal, but with some bridging so it can use NSDecimalNumber's methods when needed. What I'm wondering is, should I be replacing NSDecimalNumber in my app with Decimal? Is Decimal the successor to NSDecimalNumber in Swift? Since my app is doing a lot of formatting, it would require much casting between Decimal and NSDecimalNumber, or adding of extensions to use, so I don't think it would be natural/convenient without many extensions. Is Swift planning to improve Decimal to be more usable with NumberFormatter, or other object-oriented number APIs? Hopefully I have given enough information to answer my question. </div><div class=""><br class=""></div><div class="">Thank you <br class=""><div class=""><br class=""></div><div class=""><div class="">
<div class=""><div class="">Alex Thurston</div><div class=""><a href="mailto:athurston@icsusa.com" class="">athurston@icsusa.com</a></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div class=""><span style="font-size: 9px;" class=""><b class="">Confidentiality Notice</b>:</span></div><div class=""><span style="font-size: 9px;" class="">This e-mail, including any attachments, contains information that maybe confidential or privileged. The information is intended to be for the use of the individual or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution, or use of the contents is prohibited. If you have received this e- mail in error, please notify the sender immediately by a “reply to sender only” message and destroy all electronic and hard copies of the communication, including attachments.</span></div></div></div>
</div>
<br class=""></div></div></body></html>