I'm only going to paste part of my code since it's very long, but I was wondering if any one might know potential causes of this problem. So I have this code here:
print "part a", working_weight
cells[working_cell_position][4] = working_weight
print "part b", working_weight, cells[working_cell_position][4], cells[working_cell_position]
and what it prints is this:
part a 62.4
part b 62.4 62.4 [6, 6, '', '', 62.400000000000006]
So if you didn't quite get it, basically I have the variable working_weight
which is 62.4
, but when I insert it into a list, it changes it to 62.400000000000006
, yet if I only print that number from the list it prints as 62.4
still. If anyone could help, or suggest a solution to fix this it would be greatly appreciated.