Great, thanks
On Wed, Jan 21, 2009 at 8:43 PM, Rob Boellaard <rbo...@tuparev.com> wrote: > > In addition to Kenneth Bruno's suggestion, there is also the Data > Formatting guide: > > > http://developer.apple.com/documentation/Cocoa/Conceptual/DataFormatting/DataFormatting.html > > hth, > > Rob > > > > > On Jan 21, 2009, at 12:59 PM, Tharindu Madushanka wrote: > > Hi >> I have float variables that stores my currency values, I want to display >> these values in a string with commas at each 3 digits, can I do it with >> Objective C. I am new to the language. Please help me to solve this. >> For example, float ft = 12333.8905; >> NSString *strFloat = [NSString stringWithFormat:@"%.2f",ft]; >> >> this will show my float value with 2 decimal places 12333.89 , But I want >> it >> to be displayed as 12,333.89 >> Can I do it with objective-C. I want to create a string like above from my >> float value. >> >> Thanks >> Tharindu >> _______________________________________________ >> >> 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: >> http://lists.apple.com/mailman/options/cocoa-dev/rboell%40tuparev.com >> >> This email sent to rbo...@tuparev.com >> > > _______________________________________________ > > 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: > http://lists.apple.com/mailman/options/cocoa-dev/tharindufit%40gmail.com > > This email sent to tharindu...@gmail.com > _______________________________________________ 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com