RFR: 8341470: BigDecimal.stripTrailingZeros() optimization [v33]
fabioromano1
duke at openjdk.org
Fri Oct 11 19:29:21 UTC 2024
On Fri, 11 Oct 2024 19:09:50 GMT, Raffaello Giulietti <rgiulietti at openjdk.org> wrote:
>> 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.
> As I asked above, what's the property that should hold? 5^`maxPowsOf5` <= `intVal` < 5^(`maxPowsOf5` + 1)?
Yes, as `floor(log5(intVal)) == max{integer n : 5^n <= intVal}`.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/21323#discussion_r1797347733
More information about the core-libs-dev
mailing list