fixed double point calculation