I want to be able to pass 2 integer values to a function, x and y, and have the function return the value of x^y.
I guess I'm pretty naive when it comes to Pascal because I assumed that if the '^' operator wasn't implemented that there would be some function available in the RTL but sadly I couldn't find one. I realize I can do it with a simple loop multiplying the value 'x' 'y' times but that seems rather ridiculous and frankly would look simplistic if anyone ever saw my program.
I read about overloading ** to use for my purpose but I couldn't make heads or tails of how to write the line of code to accomplish it. So I need help.

Can someone show me the way to do "x to the power of y" either by some function available in the RTL or by overloading the operator '**'? I need to understand overloading anyway so an explanation of that would be beneficial even if the RTL has an exponent function.