Hi all,
This seems really simple but I can't see that NSNumberFormatter has a function for this which is strange. I have a number, lets say 4.1. I want to round that to 5. I figured if I used NSNumberFormatter and set the roundingMode to NSNumberFormatterRoundUp I would get the desired result. But the only way I seem to be able get my number to round now is either stringFromNumber or numberFromString. Seems odd that I just can't keep it a number.
I know I could just convert the string to a number but it seems like such a waste. Wanted to know if there was a different way (round() wouldn't round up if the number was 4.1) or if there is a method I missed looking through the class ref.
Cheers