Hexadecimal to Integer


/ Published in: Delphi
Save to your folder(s)

Works great ;)


Copy this code and paste it in your HTML
  1. function hexaToInt(s : string) : Int64;
  2. begin
  3.  
  4. if (s <> '') and (s[1] <> '$') then
  5. result := strToInt64('$' + s )
  6. else
  7. result := strToInt64(s);
  8. end;

Report this snippet


Comments


You need to login to view comments.