Re: Number Formatting
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