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 (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 arch...@mail-archive.com

Reply via email to