We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Initially logged at wrong repo at: dmester/sffjs#8
It appears that the percent format specifier is not implemented:
See specifications: https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings#the-percent-p-format-specifier
var value = 1.912421m; $"{value:p}".Dump(); $"{value:p0}".Dump(); $"{value:p10}".Dump();
values:
191,24% 191% 191,2421000000%
Values are not multiplied by 100
1,91% 2% 1,9124210000%
Use custom format string % #.## % instead of p2
%
#.## %
p2
The text was updated successfully, but these errors were encountered:
565c870
Can't reproduce. See https://jsbin.com/cidotahimi/edit?html,js,output
Sorry, something went wrong.
Thanks, I will have to investigate further what version (and what exact package we are using)
No branches or pull requests
Initially logged at wrong repo at: dmester/sffjs#8
It appears that the percent format specifier is not implemented:
See specifications:
https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings#the-percent-p-format-specifier
What it should do:
values:
What it does:
Values are not multiplied by 100
Workaround
Use custom format string
%
#.## %
instead ofp2
The text was updated successfully, but these errors were encountered: