Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-142019: Add description about the exponent of result formatted with presentation type 'e'.#142084

New issue

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
1nftf wants to merge1 commit intopython:main
base:main
Choose a base branch
Loading
from1nftf:gh-142019

Conversation

@1nftf
Copy link

@1nftf1nftf commentedNov 29, 2025
edited by github-actionsbot
Loading

@python-cla-bot
Copy link

python-cla-botbot commentedNov 29, 2025
edited
Loading

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 freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@skirpichevskirpichevskirpichev left review comments

Assignees

No one assigned

Labels

awaiting reviewdocsDocumentation in the Doc dirskip news

Projects

Status: Todo

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@1nftf@skirpichev

[8]ページ先頭

©2009-2025 Movatter.jp