Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

printf: %E format for 0.0 is not capitalized #7382

Open
drinkcat opened this issue Mar 3, 2025 · 0 comments · May be fixed by #7384
Open

printf: %E format for 0.0 is not capitalized #7382

drinkcat opened this issue Mar 3, 2025 · 0 comments · May be fixed by #7384

Comments

@drinkcat
Copy link
Contributor

drinkcat commented Mar 3, 2025

cargo run printf "%E\n" 0.0000
0.000000e+00

The e should be capitalized:

printf "%E\n" 0.0000
0.000000E+00
drinkcat added a commit to drinkcat/coreutils that referenced this issue Mar 3, 2025
0.0E+00 was not capitalized properly when using `%E` format.

Fixes uutils#7382.

Test: cargo test --package uucore --all-features float
Test: cargo run printf "%E\n" 0 => 0.000000E+00
RenjiSann pushed a commit to drinkcat/coreutils that referenced this issue Mar 5, 2025
0.0E+00 was not capitalized properly when using `%E` format.

Fixes uutils#7382.

Test: cargo test --package uucore --all-features float
Test: cargo run printf "%E\n" 0 => 0.000000E+00
drinkcat added a commit to drinkcat/coreutils that referenced this issue Mar 7, 2025
0.0E+00 was not capitalized properly when using `%E` format.

Fixes uutils#7382.

Test: cargo test --package uucore --all-features float
Test: cargo run printf "%E\n" 0 => 0.000000E+00
drinkcat added a commit to drinkcat/coreutils that referenced this issue Mar 7, 2025
0.0E+00 was not capitalized properly when using `%E` format.

Fixes uutils#7382.

Test: cargo test --package uucore --all-features float
Test: cargo run printf "%E\n" 0 => 0.000000E+00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants