Re: Clock-like looping
Re: Clock-like looping
- Subject: Re: Clock-like looping
- From: "Sherm Pendley" <email@hidden>
- Date: Sun, 29 Jun 2008 14:00:33 -0400
On Sun, Jun 29, 2008 at 1:39 PM, Daniel Richman
<email@hidden> wrote:
> Sorry, I just realized that won't work for floating point numbers. But you
> can check if the number is an integer first, then use the % operand if so.
For floating-point modulus, one can use fmod(), fmodl(), or fmodf(),
for double, long double, or float, respectively.
sherm--
--
Cocoa programming in Perl: http://camelbones.sourceforge.net
_______________________________________________
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