Quantcast
Channel: Format Negative Number
Browsing all 11 articles
Browse latest View live

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 Article



Format 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 Article

Format Negative Number

thank you!

View Article

Format 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 Article

Format Negative Number

Console.WriteLine("{0:#,##0.00;(#,##0.00);0.00}", d);

View Article


Format 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 Article

Format Negative Number

See this also:String.Format for DoubleJohn Grove - TFD Group, Senior Software Engineer, EI Division, http://www.tfdg.com

View Article

Format 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 Article


Format 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 Article


Format 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 Article

Format 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
Browsing all 11 articles
Browse latest View live




Latest Images