nsdecimalnumber Questions
1
Solved
I have an NSString which I want to convert into an NSDecimalNumber. The string is received from a server and is always formatted using the en_US locale like XXX.YYY and not like XXX,YYY. I want to ...
Sad asked 24/10, 2011 at 17:24
2
Solved
I'm fairly new to core data and iphone programming. Maybe this is an obvious answer, so if anyone can point me to a tutorial or other resource, it's greatly appreciated!
I have a core data entity t...
Insect asked 6/3, 2011 at 20:9
1
Solved
I need to subtract 0.5 from number a and set the answer to number b. My code looks like it would work but I'm not sure what I'm doing wrong. The error I get Is on the subtraction line, the error sa...
Viridian asked 17/4, 2010 at 12:40
5
OK this may be the dumb question of the day, but supposing I have a class with :
NSDecimalNumber *numOne = [NSDecimalNumber numberWithFloat:1.0];
NSDecimalNumber *numTwo = [NSDecimalNumber numberW...
Lemming asked 15/3, 2010 at 18:16
2
I have the following code
(...)
numberStyle = [NSDecimalNumberHandler decimalNumberHandlerWithRoundingMode:NSRoundPlain
scale:2
raiseOnExactness:NO
raiseOnOverflow:NO
raiseOnUnderflow:NO
rais...
Fraise asked 22/12, 2009 at 10:24
4
Solved
I can't figure how get the integral & decimal value from a NSDecimalnumber.
For example, if I have 10,5, how get 10 & 5?
And if I have 10 & 5, how return to 10,5?
Mmm ok, that is l...
Gasbag asked 28/1, 2009 at 16:38
© 2022 - 2024 — McMap. All rights reserved.