Ok so Im trying to raise this fractional amount to a high power. But for some reason, according to the logs I just get a very high number and sometimes even a NSDecimalOverflor error. Could someone please help me with this?
NSDecimalNumber *number = [[NSDecimalNumber alloc] initWithDouble:0.4];
NSInteger power = 1001;
number = [number decimalNumberByRaisingToPower:power];
NSLog(@"%@",number);
Maybe I'm hitting some sort of limit with the number being too small? Anything would help!
edit: oh and stack trace shows all the numbers are the same when it breaks in actual context.