Re: Mod (%) function in C/Objective-C?
Re: Mod (%) function in C/Objective-C?
- Subject: Re: Mod (%) function in C/Objective-C?
- From: Scott Ribe <email@hidden>
- Date: Mon, 11 Aug 2014 15:26:00 -0600
On Aug 11, 2014, at 3:15 PM, koko <email@hidden> wrote:
> When either a or n is negative, the naive definition breaks down and programming languages differ in how these values are defined.
But that is only because what you call the "naive definition" is incorrect. The actual definition is precise and covers that case, and some programming languages just do not implement it.
--
Scott Ribe
email@hidden
http://www.elevated-dev.com/
(303) 722-0567 voice
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden