Apr-29-2022, 08:10 PM
Quote:The program generates a results file with different trade statistics and parameters. That is where I got a lot of unnecessary decimal output that I figured I could clean up by converting to int so there would be no decimals.
But you are not doing that here. Calling int(float(datalist[2])) does not replace the contents of datalist[2] with an integer, it creates an integer object using the float value of datalist[2]. The integer object is used in the comparison and deleted. datalist[2] is unchanged.