Decimal to Double conversion in Swift 3

后端 未结 7 1441
春和景丽
春和景丽 2020-12-29 01:42

I\'m migrating a project from Swift 2.2 to Swift 3, and I\'m trying to get rid of old Cocoa data types when possible.

My problem is

7条回答
  •  南方客
    南方客 (楼主)
    2020-12-29 02:12

    Decimal in Swift 3 is not NSDecimalNumber. It's NSDecimal, completely different type.

    You should just keep using NSDecimalNumber as you did before.

提交回复
热议问题