answered 2016-08-08 06:28:26 -0500
Because in case Pgen is a float, you can't expect it remain the same after the conversion. Normaly, when doing float comparision, we compare difference with a small epsilon.
For more information, read:
float comparision