I am confused by NSDecimalNumber and its "behavior". I have an NSDecimalNumber which is a dollar value, like $ 37.50 for example. I would like to know how many times to say that 5.0 is included in this number, and then find out what remains. I can get a direct division and get 7.50, but I want 7 mod 2.50. I could convert to an integer, but you need to keep the "cents", so I wonder if there are any tricks in the framework?
objective-c cocoa-touch cocoa nsnumber
Meltemi
source share