Re: rounding to a multiple of x?
Re: rounding to a multiple of x?
- Subject: Re: rounding to a multiple of x?
- From: Shaun Wexler <email@hidden>
- Date: Wed, 19 May 2004 16:15:27 -0700
On May 19, 2004, at 8:47 AM, email@hidden wrote:
I can't seem to figure out how to roundup to a multiple of a number ie
if i have 1149 and i want to round up to a multiple of 4 how would
accomplish this? any direction would be great
int i = 1149;
int m = (i + 3) & ~3;
--
Shaun Wexler
MacFOH
http://www.macfoh.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.