Javascript Number dec2Hex()

Description

Javascript Number dec2Hex()


/**/*  www  .  j  ava2s.  c o m*/
* Converts a number from decimal to hex value.
*/
Number.prototype.dec2Hex = function () {
 return parseInt(this,10).toString(16);
};



PreviousNext

Related