Skip to content

Conversation

@1nftf
Copy link

@1nftf 1nftf commented Nov 29, 2025

@python-cla-bot
Copy link

python-cla-bot bot commented Nov 29, 2025

All commit authors signed the Contributor License Agreement.

CLA signed

Comment on lines +550 to +553
| | The number of zeros padding to the exponent is |
| | determined by the implementation. When the coefficient |
| | is zero, the exponent value is also determined by the |
| | implementation. |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this documents something and I'm not sure if we should do something here.

For floats, we have from the C standard: "The exponent always contains at least two digits, and only as many more digits as necessary to represent the exponent. If the value is zero, the exponent is zero." Decimal's have no constraints on minimum number of digits in the exponent representation (in fact, to-scientific-string forbids leading zeros). When the number is zero, the exponent value is determined here by the sign and precision.

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

Labels

awaiting review docs Documentation in the Doc dir skip news

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

2 participants