your code is kinda complex to follow with vodka in blood but lets say that you do integer calculations in your exp function.
that's no good for large numbers.

anyway, go ahead and tell us a task:
-what to input
-what output should be

and we can direct you.
ofcourse some dummie (like me) can give you code directly but mainly we probably give you the way to code.


anyway, this is not a dummy question, for sure.
these math Q's are nice as we don't hear them much.

thanks for asking.
_________________________
!

download KiXnet