What is the conversion for NSString to NSDecimalNumber?
unsigned long long order;
if (i==1) {
order = [feeArray objectAtIndex:0];
}
if (i==2) {
order = [amountArray objectAtIndex:0];
}
What is the conversion for NSString to NSDecimalNumber?
unsigned long long order;
if (i==1) {
order = [feeArray objectAtIndex:0];
}
if (i==2) {
order = [amountArray objectAtIndex:0];
}
You can use NSDecimalNumber
's decimalNumberWithString
initializer to convert from a string
Try this:
NSString *order = @"";
if (i==1) {
order = [feeArray objectAtIndex:0];
}
if (i==2) {
order = [amountArray objectAtIndex:0];
}
NSDecimalNumber *decimal = [NSDecimalNumber decimalNumberWithString:order];
© 2022 - 2024 — McMap. All rights reserved.