Hex-conversion functions added.

This commit is contained in:
Raymond 2010-04-27 20:30:51 +02:00
parent f8101a4227
commit b082c75daa
2 changed files with 12 additions and 0 deletions

View File

@ -163,3 +163,13 @@ function ps_ln(x : extended) : extended;extdecl;
begin
result := ln(x);
end;
function ps_inttohex(value : integer) : string;
begin
result := IntToHex(value,1);
end;
function ps_hextoint(hex : string) : integer;
begin
result := StrToInt('$' + hex);
end;

View File

@ -71,6 +71,8 @@ AddFunction(@ps_FixD,'function FixD(Degrees : extended) : Extended;');
AddFunction(@ps_InRange,'function InRange(const value,min,max : integer) : boolean;');
AddFunction(@ps_logn,'function logn(base, x : extended): extended;');
AddFunction(@ps_ln,'function ln(x : extended) : extended;');
AddFunction(@ps_inttohex,'function IntToHex(number : integer) : string');
AddFunction(@ps_hextoint,'function HexToInt(Hex : string) : integer');
{window}
SetCurrSection('Window');