Make fractional value accumulation consistent inside and outside the loop. (GH-22315)

1 file changed