I have a simple calculation
float x = ([_enterValue.text floatValue]);
//known constant number
float y = (My value here);
[_resultTxt setText:[NSString stringWithFormat:@"%f", x * y]];
The resulting stringWithFormat has a lot of zeros ie. 1.806700000000
How would I go about formatting this so my string is simply something like 1.8
1,8, not1.8.