Format Negative Number
The correct method to format positive as well as negative numbers is : .ToString("#,###.00;(#,###.00)"). The above mentioned set in {} does not format the numbers correctly.
View ArticleFormat Negative Number
Obrienkev,Keep the links that David and I supplied as a reference for you for the future.John Grove - TFD Group, Senior Software Engineer, EI Division, http://www.tfdg.com
View ArticleFormat Negative Number
I would also strongly suggest you read that entire page that I linked to in my first response. That answers all of your questions about this. Coding Light - Illuminated Ideas and Algorithms in...
View ArticleFormat Negative Number
Yeah, You're mixing the "standard numeric format string" with the "custom numeric format string". You can't do that. You're going to need to format it either wholly numeric or wholly standard. "N2"...
View ArticleFormat Negative Number
See this also:String.Format for DoubleJohn Grove - TFD Group, Senior Software Engineer, EI Division, http://www.tfdg.com
View ArticleFormat Negative Number
Yeah, You're mixing the "standard numeric format string" with the "custom numeric format string". You can't do that. You're going to need to format it either wholly numeric or wholly standard. "N2"...
View ArticleFormat Negative Number
Hi,I now have this...cell.Text = String.Format("{0:N2};{(0:N2)}", double.Parse(cell.Text));but it is not correct. Any ideas? Thanks.
View ArticleFormat Negative Number
Yep. Read this. Basically, you'll have to define all the formats in a row, separated by semicolons. Go to the page I linked to above, and check out the section entitled "The ; Section Separator". I...
View ArticleFormat Negative Number
Hi,Is it possible to format a negative number so that it appears as (2,345.90) rather than -2,345.90I have used the below code to format but unable to get brackets in...String.Format("{0:N2}",...
View Article
More Pages to Explore .....