python avoid floating point errors

visit shbcf.ru