NSString *r1=[r11 text];
NSInteger intR1=[r1 intValue];
ig=ig+(200-intR1);
I have a situation here where I need the following calculation to happen if [r11 text] will give the following output for example...
- 1:55...I want the calculation to be (2:00-1:55) = 5
- 2:03...I want the calculation to be (2:00-2:03) = -3
- 1:49...I want the calculation to be (2:00-1:49) = -11
These are examples above. Basically "2:00" is the 0 point is what I am looking for.
These calcualtions are dealing with times so 2:00 is 2 min 1:55 is 1min 55sec. but I need to make the calculation off of integers.