How to pretty print (big)numbers?
How to pretty print (big)numbers?
- Subject: How to pretty print (big)numbers?
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Sat, 11 Oct 2014 13:03:51 +0700
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.
How can I convince NSNumberFormatter that it should print unsigned integers?
Gerriet.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden