Need to compare the double and provide differences in java, How to achieve in java?
Ex 1: inputVar1=-12.5, inputVar2=-1, output: +11.5
Ex 2: inputVar1=-11.5, inputVar2=-15.7, output:-4.7
Need to compare the double and provide differences in java, How to achieve in java?
Ex 1: inputVar1=-12.5, inputVar2=-1, output: +11.5
Ex 2: inputVar1=-11.5, inputVar2=-15.7, output:-4.7