結果 : how to avoid floating point errors in python