Re: rounding a float
Re: rounding a float
- Subject: Re: rounding a float
- From: j o a r <email@hidden>
- Date: Sun, 30 Nov 2003 01:40:32 +0100
How about (man round):
float myRoundedFloatValue = roundf(myFloatValue);
j o a r
On 2003-11-30, at 01.17, Jay Rimalrick wrote:
>
What is the easiest way to round a float value with either c or
>
objective-c. I
>
need this float value to be consistent with the rounding of currency
>
e.g.
>
1.255 rounds to 1.26 and
>
1.254 rounds to 1.25
>
>
any and all help is greatly appreciated.
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.