RFR: 8341470: BigDecimal.stripTrailingZeros() optimization [v33]
Raffaello Giulietti
rgiulietti at openjdk.org
Fri Oct 11 19:12:18 UTC 2024
On Fri, 11 Oct 2024 19:01:19 GMT, Raffaello Giulietti <rgiulietti at openjdk.org> wrote:
>> And considering that `Math.round()` rounds to the closest integer, it also should assure `maxPowsOf5 >= floor(log5(intVal))`, giving a better upper bound.
>
> As I asked above, what's the property that should hold?
> 5^`maxPowsOf5` <= `intVal` < 5^(`maxPowsOf5` + 1)?
Sorry, this is not a good question, disregard.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/21323#discussion_r1797334513
More information about the core-libs-dev
mailing list