I have a float value i want to rounded off to nearest total i have find some math function but not working
Now potential profit is 300.52 so how to roundded of this please
float potentialprofit=otherthanCereniaAnnual*totalProfit;
NSString*potentialProfitTitle=[NSString stringWithFormat:@"%.2f",potentialprofit];
[potentialProfit setTitle:potentialProfitTitle forState:UIControlStateNormal];
I think it will be helpful to you.