id s = [NSString stringWithFormat"%15.2f", X ];
[readout setStringValue: s];
Hi,
I use the above to output numbers (readout is an outlet to a window) in a Cocoa application I am building using Xcode.
Is there any way to format the numbers with seperators for the thousands, so 1,234,213.12 rather than 1234213.12?
How can I dynamically adjust the number of decimals printed?
Thanks,
Jan
[readout setStringValue: s];
Hi,
I use the above to output numbers (readout is an outlet to a window) in a Cocoa application I am building using Xcode.
Is there any way to format the numbers with seperators for the thousands, so 1,234,213.12 rather than 1234213.12?
How can I dynamically adjust the number of decimals printed?
Thanks,
Jan