I'm having the hardest time figuring out something that seems like it should be very simple. I need to accurately round an NSDecimalNumber to a particular number of decimal places (determined at runtime.) So far as I can tell, I have two options, neither of which I like.
You simply call
decimalNumberByRoundingAccordingToBehavior:with the desired
NSDecimalNumberBehaviors protocol. See the
NSDecimalNumberBehaviors reference in the dev docs.