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

Re: Number Formatting


  • Subject: Re: Number Formatting
  • From: Esteban <email@hidden>
  • Date: Sat, 1 Dec 2001 14:14:43 -0800

Never mind about Apple's Currency Converter. It doesnt seem to do half of what I thought it did. Heh.
-Esteban

On Saturday, December 1, 2001, at 02:04 PM, Esteban wrote:

Anyone with any ideas? Although i'm thinking its probably a good idea to look at apple's currency converter but i think that deals with NSNumberFormatter and NSCells...

-Esteban

On Friday, November 30, 2001, at 01:15 PM, davidjclark wrote:

Hello,

Can someone clue me in on why the following code does not work ? The number returned by descriptionWithLocale: is not being formatted as it should be. For instance, if theNumber is 2000, theString is returned as 2000. It should be returning 2,000.

- ( NSString * ) _commaDelimitedSize:(UInt64) theNumber

{

NSDecimalNumber *decimalNumber;
NSString *theString;

decimalNumber = [ NSDecimalNumber numberWithUnsignedLongLong:theNumber ];
theString = [ decimalNumber descriptionWithLocale:
[ [NSUserDefaults standardUserDefaults] dictionaryRepresentation ] ];

NSLog(@"The String : %@", theString );

return theString;

}

TIA,

David
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev


References: 
 >Re: Number Formatting (From: Esteban <email@hidden>)

  • Prev by Date: Re: Number Formatting
  • Next by Date: Re: Localization of nibs / nibtool
  • Previous by thread: Re: Number Formatting
  • Next by thread: Newbie
  • Index(es):
    • Date
    • Thread