• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Clock-like looping
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Clock-like looping (From: Ashley Perrien <email@hidden>)
 >Re: Clock-like looping (From: Daniel Richman <email@hidden>)
 >Re: Clock-like looping (From: Daniel Richman <email@hidden>)

  • Prev by Date: Re: mutableArrayForKeyValue Question (ignore other email)
  • Next by Date: Re: Handling framework exceptions/errors?
  • Previous by thread: Re: Clock-like looping
  • Next by thread: Re: Clock-like looping
  • Index(es):
    • Date
    • Thread