could you store the power calc into a single variable and double check if it actually represents the right calculation before using the mod on it?
Because it looks fine otherwise
Yeah that‘s probably the problem
you wanna use a long for that
it's not even that wrongn
replace double c by long c
that works fine with .pow?
Did you learn about the data types yet?
"incompatible types: possible lossy conversion from double to long"