Changing the precision from float to double to fix rounding error and reproducibility of energy.
float
double