1nftf

Results 9 comments of 1nftf

This issue is more about **formatting values with the e/E symbol (with a given precision)**, rather than converting the value to a scientific or engineering string. When converting/serializing, you might...

But a non-zero exponent will make the padding less useful. And the '%' formatting will yield a different result due to implicit conversion to float. ```python >>> format(1 / Decimal('inf'),...

If current Decimal format behavior is considered a feature and will not change in future. A description like these can be added. > When the value is equal to zero,...

Comment posted on the wrong issue I discovered the formatting difference while investigating #142019 I found this document first: https://docs.python.org/3/library/string.html#format-specification-mini-language. When I tried to find another document, I searched for...

Comment posted on the wrong issue I think linking to the original instead of rewriting is almost always a better solution. Writing the same thing multiple times makes it easy...

~~I think I can complete this part and make it unambiguous.~~ ~~I've already spent a lot of time on it.~~ As current observed behavior (only checked on windows, most of...

~~After figuring all this out, I will create a PR and highlight the key routines.~~ ~~I have little to no experience with real-world C projects, thus need an experienced contributor...

This is what most users would expect: > For float, the exponent always contains at least two digits. I would like to add description like this: > For a given...

**See [this comment](https://github.com/python/cpython/issues/142019#issuecomment-3593878342) for aggregated information.** Sorry for my verbose comment and bad layout and some mistakes, made this issue a little off topic. I have already made a lots...