Skip to content

Conversation

@drupol
Copy link
Contributor

@drupol drupol commented May 21, 2025

📚 Description

Bash's built-in printf does not support floating-point formats like %f. This causes errors such as 'invalid number' when formatting values like 167.183.

🔖 Changes

  • This commit update the usage of printf with awk, which correctly handles float rounding and improves portability across platforms including GNU Bash.

✅ To-do list

  • I updated the CHANGELOG.md to reflect the new feature or fix
  • I updated the documentation to reflect the changes

Bash's built-in `printf` does not support floating-point formats like `%f`.
This causes errors such as 'invalid number' when formatting values like `167.183`.

This commit update the usage of `printf` with `awk`, which correctly
handles float rounding and improves portability across platforms
including GNU Bash.
@drupol drupol marked this pull request as ready for review May 21, 2025 06:24
@drupol
Copy link
Contributor Author

drupol commented May 23, 2025

Should I do something else here?

@Chemaclass Chemaclass merged commit b4462e8 into TypedDevs:main May 23, 2025
13 checks passed
@Chemaclass
Copy link
Member

@drupol nope, all good, thanks

@drupol drupol deleted the push-sspusyzutzzs branch May 23, 2025 15:01
@Chemaclass Chemaclass added the enhancement New feature or request label May 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants