9951 explained code solutions for 126 technologies


javascriptConvert hex to decimal (integer)


var hex = '6A';
var num = parseInt(hex, 16);ctrl + c
var hex

declare test HEX number string

num

will contain converted integer

parseInt(hex, 16)

parses hex string and converts to base-10 integer