Javascript:Dec to hex / hex to dec

by Mohan 2012-09-20 21:52:11

Dec to hex / hex to dec:

Amazingly people still try to do this computationally:

// number to hexadecimal
'0x' + Number( 15 ).toString( 16 );

// hexadecimal to number
parseInt( String( '8f3a5' ), 16 );
String repeat:
920
like
0
dislike
0
mail
flag

You must LOGIN to add comments