Bugfix: Precision error.

When p >= 1, setting p to 0.999999999999999999999999999999, didn't actually make p less than one.
Merge pull request #76 from sanchom/master

Bugfix: Precision error.