2 ^ 0.67?

How to do this: 2 ^(Power) 0.67 in Delphi?

Pierre
                 
pierre_anderssonAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
ZifNabConnect With a Mentor Commented:
Hi pierre_andersson,

use math library of Delphi! (seems that not much persons know about this library :-(

\source\rtl\math.pas

{ Power: Raise base to any power.
  For fractional exponents, or |exponents| > MaxInt, base must be > 0. }
function Power(Base, Exponent: Extended): Extended;

{ IntPower: Raise base to an integral power.  Fast. }
function IntPower(Base: Extended; Exponent: Integer): Extended register;

Regards, Zif.
0
 
pierre_anderssonAuthor Commented:
Where do i find this math.pas library?
0
 
ZifNabCommented:
in the directory ....\source\rtl\ (see above)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.