Re: Mod (%) function in C/Objective-C?
Re: Mod (%) function in C/Objective-C?
- Subject: Re: Mod (%) function in C/Objective-C?
- From: Dave <email@hidden>
- Date: Tue, 12 Aug 2014 17:17:37 +0100
On 12 Aug 2014, at 17:11, Scott Ribe <email@hidden> wrote:
> On Aug 12, 2014, at 10:01 AM, Dave <email@hidden> wrote:
>
>> I’m not sure what you mean by dividing by a negative number is undefined?
>
> It sure as hell better be defined, hadn't it? We wouldn't want a language where the basic math ops were that foobar'd!
>
> Now in K&R C, the direction of truncation was undefined for division with negative integers, but C99 fixed that.
>
Yes, I saw that from the digging I did, I think that’s what he meant.
Cheers
Dave
_______________________________________________
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