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
import strformat echo fmt"{-0.0:+f}" echo fmt"{-0.0:+e}" echo fmt"{-0.0:+g}"
produces:
+-0n.000000 +-0.000000e+00 +-0
strformat shouldn't add the '+' in this case.
And btw. if you try to run this on the js backend, you get something like:
res_121201 = f_121023.toFixed(precision_121030); ^ RangeError: toFixed() digits argument must be between 0 and 100
this is due to strutils.parseBiggestFloat which in the defined(js) branch doesn't handle the case precision < 0.
defined(js)
precision < 0
The text was updated successfully, but these errors were encountered:
has been fixed in #7954. thanks @Varriount for the support!
Sorry, something went wrong.
No branches or pull requests
produces:
strformat shouldn't add the '+' in this case.
And btw. if you try to run this on the js backend, you get something like:
this is due to strutils.parseBiggestFloat which in the
defined(js)
branch doesn't handle the caseprecision < 0
.The text was updated successfully, but these errors were encountered: