Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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