Skip to content

Conversation

@strangelookingnerd
Copy link
Contributor

@strangelookingnerd strangelookingnerd commented Jul 21, 2025

Add support for Zettabyte (ZB), Yottabyte (YB), Ronnabyte (RB) and Quettabyte (QB) in FileUtils#byteCountToDisplaySize

In November 2022 the International Bureau of Weights and Measures (BIPM) added the prefixes ronna‑ (10²⁷) and quetta‑ (10³⁰)
source.

Thanks for your contribution to Apache Commons! Your help is appreciated!

Before you push a pull request, review this list:

  • Read the contribution guidelines for this project.
  • Read the ASF Generative Tooling Guidance if you use Artificial Intelligence (AI).
  • I used AI to create any part of, or all of, this pull request.
  • Run a successful build using the default Maven goal with mvn; that's mvn on the command line by itself.
  • Write unit tests that match behavioral changes, where the tests fail if the changes to the runtime are not applied. This may not always be possible, but it is a best-practice.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Each commit in the pull request should have a meaningful subject line and body. Note that a maintainer may squash commits during the merge process.

@strangelookingnerd strangelookingnerd changed the title FileUtils#byteCountToDisplaySize supports Zettabyte, Yottabyte, Ronnabyte and Quettabyte FileUtils#byteCountToDisplaySize supports Zettabyte, Yottabyte, Ronnabyte and Quettabyte Jul 21, 2025
@garydgregory garydgregory merged commit e53dddc into apache:master Jul 21, 2025
20 of 21 checks passed
@strangelookingnerd strangelookingnerd deleted the support_all_display_sizes branch July 21, 2025 14:37
garydgregory added a commit that referenced this pull request Jul 21, 2025
@garydgregory
Copy link
Member

Hello @strangelookingnerd

I merged the PR after adding @since Javadoc tags for the new public elements.

TY! 🚀 👍

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants