mirror of
https://github.com/moparisthebest/Simba
synced 2024-11-25 10:42:20 -05:00
Hex-conversion functions added.
This commit is contained in:
parent
f8101a4227
commit
b082c75daa
@ -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;
|
||||
|
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user