skip to Main Content

Ios swift – Why NSDecimalNumber(string:"2175613.285964774433431797660").intValue = 0 , who can help me

Why NSDecimalNumber(string:"2175613.285964774433431797660").intValue = 0 NSDecimalNumber(string:"2175613.285964774433431797660").int32Value = 2175613 NSDecimalNumber(string:"2175613.285964774433431797660").int64Value = 0 Who can help me? Apple M1 Mac OS Ventura 13.0 Xcode 14.1 let a = NSDecimalNumber(string: "2175613.285964774433431797660188672").intValue // a == 0 is true This problem caused our users' wallet balances…

VIEW QUESTION
Back To Top
Search