I have one application that I know. The double range is **1.7E +/- 308 (15 digits).** , but in my application I need to divide the value of the text field by 100.0 , my code
double value=[strPrice doubleValue]/100.0; NSString *stramoount=[@"" stringByAppendingFormat:@"%0.2f",value ];
when I divide 34901234566781212 by 100 , it gives me 349012345667812.12 , but when I type 349012345667812124 and divide by 100 , it gives me 100 , it gives me 3490123456678121.00 , which is wrong, do I change the data type or how can I change my code
source share