• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 136
  • Last Modified:

2 ^ 0.67?

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

Pierre
                 
0
pierre_andersson
Asked:
pierre_andersson
  • 2
1 Solution
 
ZifNabCommented:
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

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now