MrSwiss wrote:Maybe the additional variable (the assignment to it) solves the possible rounding issue ...
Read
Operators/Arithmetic/^ in the FB-documentation.
"... Note: this operation is not guaranteed to be fully accurate, and there may be some inaccuracy in the least significant bits of the number. This is particularly noticeable when the result is expected to be an exact number: in these cases, you may find the result is out by a very small amount. For this reason, you should never assume that an exponentiation expression will be exactly equal to the value you expect.
This also means that you should be wary of using rounding methods such as Int and Fix on the result: if you expect the result to be an integer value, then there's a chance that it might be slightly lower, and will round down to a value that is one less than you would expect... "
Ooops.