Re: Simple Rounding Question
Re: Simple Rounding Question
- Subject: Re: Simple Rounding Question
- From: Markus Hitter <email@hidden>
- Date: Mon, 3 Apr 2006 09:57:29 +0200
Am 03.04.2006 um 07:15 schrieb Ian was here:
Given the following float value:
3.14159
I would like to be able to round to the nearest
hundredth or nearest thousandth.
Nobody answered for more than two hours? That's odd.
floor((x * 1000) + 0.5) / 1000
Markus
- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden