• 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: CGFloat and 64 Bit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CGFloat and 64 Bit


  • Subject: Re: CGFloat and 64 Bit
  • From: Rob Keniger <email@hidden>
  • Date: Mon, 9 Feb 2009 15:39:28 +1000


On 09/02/2009, at 3:37 PM, Rob Keniger wrote:

Try this:

NSSize a = NSMakeSize( 11.2f, 22.4f);

The "f" suffix is a hint to the compiler that it's a float value.


To clarify further, the compiler treats number literals with a decimal point as a double, so you need to use the f suffix to have it treat the number as a float.

--
Rob Keniger



_______________________________________________

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: 
 >CGFloat and 64 Bit (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: CGFloat and 64 Bit (From: Rob Keniger <email@hidden>)

  • Prev by Date: Re: passing argument 1 of 'setContents:' from incompatible pointer type
  • Next by Date: Re: How do I unit test an object delegate?
  • Previous by thread: Re: CGFloat and 64 Bit
  • Next by thread: Re: CGFloat and 64 Bit
  • Index(es):
    • Date
    • Thread