First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
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: