alias
x.toString(16) (JavaScript)
alias lang_id
js
how to
convert integer to hex string
lang_id
js
qid
32006

How to
x.toString(16) (JavaScript)

Redirected to “convert integer to hex string

Use Number.toString(radix) method, like x.toString(16).

var x = 4067;
alert(x.toString(16));  // fe3
Select default language: