Well if you're not using some kind of floating point software routine... the code you listed won't work. Picbasic only works with integers.
HERE'S a good thread to read that speaks to the hardware side of why, and Here is a good reference as to get around the limitations of working with integer math. And finally, HERE is melabs solution.
Bookmarks