• 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
Number Formatting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Number Formatting


  • Subject: Number Formatting
  • From: Daniel Todd Currie <email@hidden>
  • Date: Mon, 25 Aug 2003 13:14:10 -0700

I'm working on a scientific application that requires number formatting based on the number input by the user (significant digits). Is there a simple way to dynamically change the number format, i.e. number of decimal places used, accuracy, exponential notation, etc? The best I've come up with so far is converting to a string and counting the characters before and after the decimal point, then concatenating. This seems like a lot of trouble for such a standard operation, but I have found nothing in NSNumber, NSValue, NSDecimalNumber, etc. documentation. If you know of any good resources, feel free to just give me a link. Thanks.

// Daniel Currie
_______________________________________________
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: Number Formatting
      • From: Chris Hanson <email@hidden>
  • Prev by Date: Window with no document ?
  • Next by Date: Re: (NEWBIE) NSOutlineView question
  • Previous by thread: Re: Window with no document ?
  • Next by thread: Re: Number Formatting
  • Index(es):
    • Date
    • Thread