Re: Rounding mode
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