Hexadecimal conversions

Matthias Lang <>
Thu Nov 21 10:18:26 CET 2002


Magnus Ahltorp writes:
 > I have used my own to/from hex string converter several years now, but 
 > as I was trying to clean up my code, I wanted to get rid of it.
 > 
 > Is there a built-in hex string converter in Erlang? I've tried to look 
 > around, but I've never found one.

No BIF, as far as I know, but as of R9 there's
httpd_util:hexlist_to_integer/1 and integer_to_hexlist/1

See 

  http://www.erlang.org/doc/r9b/lib/inets-3.0/doc/html/httpd_util.html

Matthias



More information about the erlang-questions mailing list