0

somebody help,I tried whold afternoon and could't find the method to do this.

welsonla
  • 328
  • 3
  • 15

1 Answers1

1

NSDecimal is a C-struct with private members, you would usually create one from the Objective-C class NSDecimalNumber (decimalValue).

However, using NSDecimal directly is rarely needed, dealing with NSDecimalNumber is much easier. You can use the decimalNumberByAdding: method instead of the NSDecimalAdd function.

omz
  • 52,865
  • 5
  • 126
  • 139