On Sun, Jun 29, 2008 at 1:39 PM, Daniel Richman <[EMAIL PROTECTED]> 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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]