• 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
double: Decimal places
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

double: Decimal places


  • Subject: double: Decimal places
  • From: Cyprien <email@hidden>
  • Date: Tue, 15 Jul 2003 13:37:46 +0200

Hi

I'm trying to have at least 9 decimal places with the numbers I manipulate. I use double, which garanties normally at least 15 decimal places. But when I do NSLog(@"%f",myDouble); it return always 6 decimal places. Never less.
When I try to see them in TextFields (setStringValue), I get the same problem...

Can anbody help me?

Cyprien
_______________________________________________
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: double: Decimal places
      • From: mathew <email@hidden>
    • Re: double: Decimal places
      • From: Steve Bird <email@hidden>
  • Prev by Date: Re: (10.0.x) option-clicking in statusbar hides active app (update)...
  • Next by Date: Re: double: Decimal places
  • Previous by thread: Xcode issues
  • Next by thread: Re: double: Decimal places
  • Index(es):
    • Date
    • Thread