Re: Rounding to two decimals
Re: Rounding to two decimals
- Subject: Re: Rounding to two decimals
- From: Yann Bizeul <email@hidden>
- Date: Sat, 17 Jul 2004 23:45:42 +0200
Both methods in the page you pointed to should work. espacially the
*100 /100 which is usually used.
What's the problem with it ?
Le 17 juil. 04, ` 23:14, Ken Garden a icrit :
>
Hi everyone,
>
>
I just joined the list and wanted to ask a simple beginner's question
>
to finish up my very first project in Cocoa. It's a simple app that
>
calculates the average of integers. This result (float type) often is
>
a decimal number with several digits. How can this float be limited
>
and rounded to two decimals?
>
>
I've tried the codes provided in the following page already, but
>
without success:
>
http://www.cocoadev.com/index.pl?RoundingFloatingPointValues
>
>
Thanks in advance!
>
_______________________________________________
>
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.
>
>
>
--
Yann Bizeul - yann at tynsoe.org
http://projects.tynsoe.org/
_______________________________________________
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.