• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Rounding to two decimals
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Rounding to two decimals
      • From: Ken Garden <email@hidden>
References: 
 >Rounding to two decimals (From: Ken Garden <email@hidden>)

  • Prev by Date: Re: iChat perspective view
  • Next by Date: Cocoa Bindings and commit editing changes
  • Previous by thread: Rounding to two decimals
  • Next by thread: Re: Rounding to two decimals
  • Index(es):
    • Date
    • Thread