• 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
Modulus calculation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Modulus calculation


  • Subject: Modulus calculation
  • From: vince <email@hidden>
  • Date: Sun, 1 Jun 2008 21:19:29 -0400

I need to state whether a modulus value = zero.
For example:

if (textField.floatValue % 10 == (0)) {


What's wrong with my syntax?


Thanks.


v.
_______________________________________________

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

  • Follow-Ups:
    • Re: Modulus calculation
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: main menu's missing connection
  • Next by Date: Re: to use the default about panel
  • Previous by thread: Re: main menu's missing connection
  • Next by thread: Re: Modulus calculation
  • Index(es):
    • Date
    • Thread