Hello I would like to know how to get my NSString to to read 5.11 as 5.11 not 5.1. It is necessery that I can do this is that I am reading in from this field as feet and inches and not decimal format. This code works for the calculation
CGFloat hInInches = [height floatValue];
CGFloat hInCms = hInInches *0.393700787;
CGFloat decimalHeight = hInInches;
NSInteger feet = (int)decimalHeight;
CGFloat feetToInch = feet*12;
CGFloat fractionHeight = decimalHeight - feet;
NSInteger inches = (int)(12.0 * fractionHeight);
CGFloat allInInches = feetToInch + inches;
CGFloat hInFeet = allInInches;
But it doesnt let you read in the value taken from an nstextfield the right way.
Any help getting this to read in the right information from the nstextfield would be appreciated. Thanking You