driger1592
2006-04-30 15:42:48
Well, Kane could get away with posting weird functions, so I figured no one would mind me posting this ;)
Function IsPerfectSquare(e: extended): Boolean;
begin
If(e<0)Then
Exit;
If(Sqr(Trunc(Sqrt(e)))=e)Then
Result := True;
end;This function checks if a number is a perfect square. You might find a use for this in a script. Who knows. It even works with negative numbers ;)