Konversi da decimale a hex javascript
//hex <- int:
hexString = yourNumber.toString(16);
//int <- hex:
yourNumber = parseInt(hexString, 16);
fa.moso
//hex <- int:
hexString = yourNumber.toString(16);
//int <- hex:
yourNumber = parseInt(hexString, 16);