I am trying to find the difference of 2 doubles with many decimal points:
double highest = 0.01518804243008679;
double lowest = 0.01464486209421528;
System.out.println("Difference: " + (highest - lowest));
And I get an answer which is correct, but is just just multiplied by 10 000:
Difference: 5.431803358715102E-4
When the desired output is:
Difference: 0.0005431803358