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

Float constants


  • Subject: Float constants
  • From: Michael Vannorsdel <email@hidden>
  • Date: Wed, 17 Mar 2010 16:14:38 -0600

I've been working on some 64bit code cleaning but need some advice on float constants.  Currently on 32bit builds I use -fsingle-precision-constant since most of my code uses CGFloats and I'd like the constants to be the correct precision.  But in some places I do work with doubles and would like the constants involved to be double on 32bit and not float getting promoted.  I tried the L suffix on them but they still compile as floats.  So is there a way to force a constant to be a double when using -fsingle-precision-constant?_______________________________________________

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: Float constants
      • From: "Sean McBride" <email@hidden>
  • Prev by Date: Re: CoreData database sharing and migration
  • Next by Date: Re: setStringValue problems with dynamically loaded views.
  • Previous by thread: Layout timing (was Re: setStringValue problems with dynamically loaded views.)
  • Next by thread: Re: Float constants
  • Index(es):
    • Date
    • Thread