Simple answer:
Because PBP uses integer math, you won't get any meaningful value from 1/x.

You will need to think in terms of integers and scale your values appropriately.

The other alternatives is to try the floating point routines found here: http://melabs.com/resources/fp.htm