Does java handles the calculations for both versions in the same manner:
version 1:
double output = 5 + 3 + (5 / 3) - 8 * 10 + 12 - 20 - (5 / 3) - 8 * 10 * Math.Pi;
version 2:
double pi = Math.Pi;
double a = 5/3;
double b = 8 * 10;
double output = 5 + 3 + a - b + 12 - 20 - a - b * pi;
in relation to performance/memory/precision are both equal?
"one single operation" means one single rounding? Instead of three seperate roundings for each term??