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

RSS Icon Subscribe to comments

You need to login to post a comment.