I'm having trouble formatting a double to a string..
This is the code is use..
Code:
secondLabel.text = [NSString stringWithFormat:@"%i.%i", second, millisecond];
NSString *convert = [NSString stringWithFormat:@"%i.%i", second, millisecond];
kilometers = [convert doubleValue];
kilometers = kilometers * 2.9;
meterLabel.text = [NSString stringWithFormat:@"%d", kilometers];
and this is the result..
Anybody?