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
The format specification mini-language documentation on the website states:
Option Meaning '+' indicates that a sign should be used for both positive as well as negative numbers. '-' indicates that a sign should be used only for negative numbers (this is the default behavior). space indicates that a leading space should be used on positive numbers, and a minus sign on negative numbers.
The use of "positive" here should perhaps instead say "nonnegative" since they affect zero values.
e.g., format("{+}", 0) produces "+0", but the documentation as written could be interpreted as expecting the result to be "0" with no sign.
format("{+}", 0)
"+0"
"0"
The text was updated successfully, but these errors were encountered:
positive -> nonnegative (#2493)
25af02f
Fixed in https://fmt.dev/dev/syntax.html, thanks.
Sorry, something went wrong.
positive -> nonnegative (fmtlib#2493)
c580781
No branches or pull requests
The format specification mini-language documentation on the website states:
The use of "positive" here should perhaps instead say "nonnegative" since they affect zero values.
e.g.,
format("{+}", 0)
produces"+0"
, but the documentation as written could be interpreted as expecting the result to be"0"
with no sign.The text was updated successfully, but these errors were encountered: