Check out the code creating the nsdt variable. It should be like this:
nsdt - [NSNumber numberWithDouble:0.033];
You will have 0 if your code looks like this:
int x = 0.033; NSNumber *test = [NSNumber numberWithDouble:x]; double y = [test doubleValue]; NSLog(@"y= %f", y);
Pavel source share