The problem with the floating point ID# arose when I assigned a post an id of -1 temporarily before changing it back to a proper number. Since I was still testing the program it would occasionally crash, leaving -1 for the id. I would then manually go into the MT database and change -1 to the proper id. However, when I run the script next time, it would assign the first post's id as 2147483647 and for every post thereafter, it wouldn't assign a number (probably because 2147483647 is the highest number the variable could go).
My question is where does the program store the id for the next post and how do I change it back to a proper number?