On Sat, 26 Nov 2022 19:24:21 GMT, Nir Lisker <nlis...@openjdk.org> wrote:
>> The cast has precedence and Java will not downcast mid calculation and lose >> precision, so all examples here are correct. > > `4L * physicalWidth * physicalHeight;` does not require an explicit cast, so > I think it's the clearest. That variant is fine with me. ------------- PR: https://git.openjdk.org/jfx/pull/960