Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"#" behaving like "0" in format (or ... pilot error?) #3

Open
GoogleCodeExporter opened this issue Apr 24, 2015 · 1 comment
Open

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Value: 9876.0000000001
2. Format: #,#.###
3. Result: 9,876.000

What is the expected output? What do you see instead?

I had expected that the trailing zeros would be omitted in the output ("9,876") 
because at that point they are not significant digits. However, documentation 
is so sparse that I'm not sure if that is the expected output or if I'm just 
misinterpreting this as an issue.

What I see instead is what I would expect using a format of "#,#.00". That is, 
I see the same behavior from both formats.

What version of the product are you using? On what operating system?

Using the latest code drop from this site, on Firefox 3.6x and IE 6 over 
Windows XP.
Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 1 Dec 2010 at 5:26

@GoogleCodeExporter
Copy link
Author

Edit:      ... expect using a format of "#,#.00". That is ...
to read:   ... expect using a format of "#,#.000". That is ...

The more I look at this, the less I think it's pilot error. See examples at: 

http://msdn.microsoft.com/en-us/library/7x5bacwt%28v=vs.71%29.aspx

Original comment by [email protected] on 1 Dec 2010 at 11:05

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant