I would guess because she isn’t doing a straight forward “raise to the power of” calculation. The original question stated four rules:

I have this in mind – > 4 cases:

(1) If Y 1, then Z = X to the power of n

which involves a couple of extra lines for conditions, etc.

All the best

Jonathan

]]>directly in your program?

You should consider defining the result as a floating point field which allows +ve and -ve numbers 10 power-308 thru 10 power 308 with 16 significant digits if your potentail results are not within the range of a fixed packed decimal format

]]>