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

Round a float


  • Subject: Round a float
  • From: Lorenzo <email@hidden>
  • Date: Mon, 28 Jul 2003 15:41:28 +0200

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

I tried this
NSLog(@"round 0.0f", floatSize);
but it didn't work as I expected.

Any suggestion?


Best Regards
--
Lorenzo
email: email@hidden
_______________________________________________
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: Round a float
      • From: Steve Bird <email@hidden>
    • RE: Round a float
      • From: "Jonathan E. Jackel" <email@hidden>
    • Re: Round a float
      • From: Andreas Monitzer <email@hidden>
  • Prev by Date: Quit AppleEvent fails (sometimes)
  • Next by Date: Re: Round a float
  • Previous by thread: PB experiences framework name confusion for older projects
  • Next by thread: Re: Round a float
  • Index(es):
    • Date
    • Thread