check if p is a proportion
Merge pull request #1 from soride/master

check if p is a proportion from Sarah