This article provides an overview of raising a number to some arbitrary power in a Delphi program.
Some computer languages have a power operator that raises a value to a power.
For some reason, Pascal and C do not include this operator. The function can be made to work if all the special cases are considered. This function, labeled Jack in the table above, returns the correct values if you will allow that 1e-16 is the same as 0.0. Delphi 4 added a standard math unit to the Borland Pascal distribution. That unit includes a power function and an IntPower function.