阅读背景:

NSDecimalNumber如何确定是否存在小数部分

来源:互联网 

I have a use-case where I want to determine if an NSDecimalNumber in swift has a fractional component (other than 0). I can truncate the decimal portion, but that involves creating a new NSDecimalNumber and I would like to avoid that if possible.I have a use-case where I want to determine if




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: