> On 11 Oct 2014, at 8:22 pm, Igor Mozolevsky <i...@hybrid-lab.co.uk> wrote:
> 
> On 11 October 2014 07:03, Gerriet M. Denkmann <gerr...@mdenkmann.de> wrote:
> 
>> On iOS 8.0:
>> 
>> UInt64 sum = 16494631536958186120UL;
>> NSString *sumString =   [ NSNumberFormatter
>> localizedStringFromNumber:      @(sum)
>> 
>>      numberStyle:                            NSNumberFormatterDecimalStyle
>>                                        ];
>> results in sumString =  -1,952,112,536,751,365,496, which seems not quite
>> right.
>> 
> 
> 
> Further thought:- Isn't UInt64 a typedef?
> 
> Try making the ULL (not UL) number with +(NSNumber
> *)numberWithUnsignedLongLong method of NSNumber…
> 

I already posted that code (in swift) and it doesn’t work, and it’s already 
been explained why NSNumberFormatter doesn’t work on unsigned long longs


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to