View Single Post
  #2 (permalink)  
Old 06-15-2007, 01:52 AM
Gove
Posts: n/a
Pascal does not have an inbuilt power function. You have to write one yourself. The common, but non-general method is defining

function POWERFN(number, exponent: float): float;
begin
PowerFn := Exp(Exponent*Ln(Number));
end;

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!