On Mon, 31 Aug 2026 12:02:51 GMT, John Hendrikx <[email protected]> wrote:
>> Like the other methods, it would snap the value to the pixel grid, which is >> not the same as `Double.MAX_VALUE`. If that particular value is treated as a >> sentinel by the caller, then it's probably the responsibility of the caller >> to ensure that it isn't passed into the snapping methods. > > It will just return `Double.MAX_VALUE`. The ceil function which uses `ulp` > messes this up, but that's pre-existing. This code uses `Math.round`, which saturates the `double` to the range of a `long`. So it can't ever represent very large doubles. ------------- PR Review Comment: https://git.openjdk.org/jfx/pull/2278#discussion_r3894310010
