Number Formatting
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.