> An optimized algorithm for `BigDecimal.stripTrailingZeros()` that uses > repeated squares trick.
fabioromano1 has updated the pull request incrementally with one additional commit since the last revision: Cache the powers of 5 to allow the reuse ------------- Changes: - all: https://git.openjdk.org/jdk/pull/21323/files - new: https://git.openjdk.org/jdk/pull/21323/files/8a6e38f3..030c97a6 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=21323&range=09 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=21323&range=08-09 Stats: 45 lines in 1 file changed: 30 ins; 7 del; 8 mod Patch: https://git.openjdk.org/jdk/pull/21323.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/21323/head:pull/21323 PR: https://git.openjdk.org/jdk/pull/21323