User:EstherLoer/vector.js

// converts integer value to hexadecimal function INTtoHEX(integer) { var hex = new Array('0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'); var h = Math.floor(integer/16); var l = integer-h*16; return hex[h]+hex[l]; }