• 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: Rounding mode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Rounding mode


  • Subject: Re: Rounding mode
  • From: "Jan E. Schotsman" <email@hidden>
  • Date: Sun, 09 Dec 2012 21:30:50 +0100


On Dec 9, 2012, at 9:00 PM, Jean-Daniel Dupas wrote:

I don't think the C standard specify that the current rounding mode should be used when converting a float to an int.

I see. Otherwise it would have been too easy.

If you want to round a floating point value according to the current rounding mode, you should the rint() function.

I'll go for lrintf.

Jan E.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Rounding mode
      • From: Fritz Anderson <email@hidden>
  • Prev by Date: Re: Rounding mode
  • Next by Date: Still no diff for model version in Xcode 4?
  • Previous by thread: Re: Rounding mode
  • Next by thread: Re: Rounding mode
  • Index(es):
    • Date
    • Thread