9/11/08 2:11 AM, also sprach [EMAIL PROTECTED]:

> I attempted to do that with the following code:
> 
> NSDecimalNumberHandler* roundingBehavior = [NSDecimalNumberHandler
> decimalNumberHandlerWithRoundingMode:NSRoundPlain scale:5];
> 
> NSDecimalNumber *roundFloat = [[[[NSDecimalNumber alloc]
>                         initWithFloat:0.0000000111123]
>                         decimalNumberByRaisingToPower:5]
>                         decimalNumberByRoundingAccordingToBehavior:
> roundingBehavior];
> 
> ... but I'm getting the following warning:
> 
> "NSDecimalNumberHandler" may not respond to "decimalNumberHandler..."

Yes, because it doesn't. The method is
decimalNumberHandlerWithRoundingMode:scale:raiseOnExactness:raiseOnOverflow:
raiseOnUnderflow:raiseOnDivideByZero: . There is no shortcut method.

HTH,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to