• 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: Round a float
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Round a float


  • Subject: Re: Round a float
  • From: Andreas Monitzer <email@hidden>
  • Date: Mon, 28 Jul 2003 16:59:18 +0200

On Monday, Jul 28, 2003, at 15:41 Europe/Vienna, Lorenzo wrote:

I have a
float floatSize = 105.55791;
and I would like to print it as @"105.5";

((long)(105.55791*10.0))/10.0

or format string "%.1f"

andy
_______________________________________________
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.

References: 
 >Round a float (From: Lorenzo <email@hidden>)

  • Prev by Date: Round a float
  • Next by Date: RE: Round a float
  • Previous by thread: Round a float
  • Next by thread: RE: Round a float
  • Index(es):
    • Date
    • Thread