How to create a power function?



How to create a power function?..

Answer / Rakhi Verma

"To create a power function in Delphi, you can use the built-in pow(x: Real; y: Integer) or power(x, y) function. Here's an example of using the built-in power function:

```delphi
function Power(Base, Exponent: Real): Real;
begin
Result := power(Base, Exponent);
end;"

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Delphi Interview Questions

How to Re-execute export From Table ?

1 Answers  


How to Get the filename and path of a local table?

1 Answers  


How to create a power function?

1 Answers  


Can I make calls to Delphi code from C or C++?

1 Answers  


How to obtain IDAPI32.LIB and IDAPI.H ?

1 Answers  


How to Create new constructors?

1 Answers  


How to Obtain a list of available BDE language drivers?

1 Answers  


How to retrieve an InterBase Blob in Delphi using SavetoFile?

1 Answers  


How to Get a list of the available drives on a system?

1 Answers  


How to Determine if a combobox is in dropped state?

1 Answers  


How to Use Control Characters With Delphi?

1 Answers   Crossdomain, Delphi,


How to get the version information for a file?

1 Answers  


Categories