Converts a number from decimal to hex value. - Node.js Number

Node.js examples for Number:Decimal

Description

Converts a number from decimal to hex value.

Demo Code


Number.prototype.dec2Hex = function () {
  return parseInt(this,10).toString(16);
};

Related Tutorials