Re: Format float value to display with commas

2009-01-22 Thread Tharindu Madushanka
Great, thanks On Wed, Jan 21, 2009 at 8:43 PM, Rob Boellaard 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 2

Re: Format float value to display with commas

2009-01-21 Thread Sanjay Samani
Tharindu, you need to look at NSNumberFormatter in Cocoa, which will be able to do this for you. Sanjay Samani DayTime Software http://daytimesoftware.com On 21 Jan 2009, at 11:59, Tharindu Madushanka wrote: Hi I have float variables that stores my currency values, I want to display thes

Re: Format float value to display with commas

2009-01-21 Thread Rob Boellaard
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 sto

Re: Format float value to display with commas

2009-01-21 Thread Kenneth Bruno II
On Jan 21, 2009, at 6:59 AM, Tharindu Madushanka wrote: 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

Format float value to display with commas

2009-01-21 Thread Tharindu Madushanka
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 stringWithForma