You are viewing a single comment's thread. Return to all comments →
You are using
to find a power of value of the result variable using
which returns a double value as a library method. You thus need to cast it to an int in order for it to work/compile. You will get a casting error otherwise.