• 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: Confused about floats
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Confused about floats


  • Subject: Re: Confused about floats
  • From: Scott Ribe <email@hidden>
  • Date: Tue, 5 Oct 2010 09:48:56 -0600

On Oct 5, 2010, at 9:32 AM, Shawn Bakhtiar wrote:

> However, for clarity of the OP, x = x + y where y is an int, should be typecast correctly as x = x + (float)y

Why? The two are exactly equivalent.

Now if you want to do so as a stylistic preference, that's fine, but there's no "should" about it.

--
Scott Ribe
email@hidden
http://www.elevated-dev.com/
(303) 722-0567 voice




_______________________________________________

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: 
 >Re: Confused about floats (From: Gregory Weston <email@hidden>)
 >RE: Confused about floats (From: Shawn Bakhtiar <email@hidden>)
 >Re: Confused about floats (From: Scott Ribe <email@hidden>)
 >RE: Confused about floats (From: Shawn Bakhtiar <email@hidden>)
 >Re: Confused about floats (From: Scott Ribe <email@hidden>)
 >RE: Confused about floats (From: Shawn Bakhtiar <email@hidden>)

  • Prev by Date: Re: Confused about floats
  • Next by Date: JDBC from Cocoa or the like
  • Previous by thread: Re: Confused about floats
  • Next by thread: Re: Confused about floats
  • Index(es):
    • Date
    • Thread