I have the following formula and code:
I tried with Math.Floor, and others but I am not getting the result expected
double netPay = grossPay - totalDeduction;
System.out.printf("Net Pay: $%.2f", (netPay));
The idea is to get the number as follows:
46.225
Rounded as 46.22
and not as 46.23