double variable not able to hold onto values
<p>i have a double variable in my application and i update some values to it in viewDidLoad method and want to use it later in one of the delegate method of tableview but the variable is not able to retain the value. I am declaring it as follows:</p>

<pre><code>double subTtl;
@property(nonatomic,assign) double subTtl;
</code></pre>

<p>mycode for viewdidLoad   </p>

<pre><code>subTtl = 0;
for (int i = 0; i&lt;[pizzaAppDel.arrOrders count]; i++) {
    [pizzaAppDel.arrOrderDetails addObject:@"1"];
    subTtl = subTtl + [[(NSDictionary*)[pizzaAppDel.arrOrders objectAtIndex:i] objectForKey:@"price"] doubleValue];
}
NSLog(@"%@",[NSString stringWithFormat:@"%.2f",subTtl]);
</code></pre>

<p>This is how i m using it in my tableview delegate method:   </p>

<pre><code>lblTtlPrice.text = [@"Subtotal:  $" stringByAppendingString:[NSString stringWithFormat:@"%.2f",subTtl]];
</code></pre>

<p>i am synthesising it in .m file and saving some values, i can see the values inside the variable but when i try to use it later i get nothing from it, variable returns empty.</p>
