I'm not sure what to do next. They are only dollar amount from a text field. I am trying. When I try to use the decimal number, then I add: It may be that I am going about all this wrong ... but I am starting again now. your You can create an example from a string: [BankBalanceInput.text substringFromIndex: 1]; NSDCCNumber * Bank Balance Value = [NSDCilanmar Decimal Decimal Number: Bank Balance]; NSString * checkAmount = [checkAmountInput.text substringFromIndex: 1]; NSDecimalNumber * checkAmountValue = (NSDecimalNumber *) [NSString stringWithFormat: @ "% @", checkAmain]; NSLog (@ "% @", check Amount Value); NSST * Bank Balance = [Bank Balance Input. Substitution Form Index: 1]; NSDecimalNumber * Bank Balance Value = (NSDecimalNumber *) [NSString stringWithFormat: @ "% @", Bank Balance]; NSLog (@ "% @", Bank Balance Value); NSDecimalNumber * totalAmount = NSLog (@ "% @", total amount);
'- [__ NSCF string desemban decimal bending:]: unrecognized selector For example, 0x8a39a10 '
checkout value and
bank balance value Actually casting
NSDecimalNumber not
NSString to a
NSDecimalNumber will compromise a compiler warning, but the objects are still string.
NSString * bankBalance =
No comments:
Post a Comment