Simple Rounding Question
Simple Rounding Question
- Subject: Simple Rounding Question
- From: Ian was here <email@hidden>
- Date: Sun, 2 Apr 2006 22:15:04 -0700 (PDT)
Given the following float value:
3.14159
I would like to be able to round to the nearest
hundredth or nearest thousandth. I've searched through
the ANSI C math functions and haven't found anything
that addresses this. I was wondering if anyone knows
of any function or method to round to the desired
digit.
Thanks.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
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