Re: Decimal Rounding...
Re: Decimal Rounding...
- Subject: Re: Decimal Rounding...
- From: Steve Mills <email@hidden>
- Date: Mon, 26 Aug 2002 17:45:46 -0500
on 2002/08/26 17:10, Joshua D. Orr at email@hidden wrote:
>
I am trying to find a class to help me round floats to three decimal
>
places.
How 'bout:
num = (float)round(num * 1000.0) / 1000.0;
Steve Mills
Drummer, Mac geek
http://members.home.net/sjmills5/
_______________________________________________
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.