convert int64 number between two scales
npm install int64-convertconvert int64 number (display as string) between two scales
`` `
npm install int64-convert
`js
var convert = require("int64-convert");
// unsigned
convert('7fffffffffffffff', 16, 10); // '9223372036854775807'
convert('9223372036854775807', 10, 16); // '7fffffffffffffff'
convert('7fffffffffffffff', 16, 2); // '111111111111111111111111111111111111111111111111111111111111111'
convert('9223372036854775807', 10, 2); // '111111111111111111111111111111111111111111111111111111111111111'
// polish int64 value
convert('4660', 10, 16, 8); // '00001234'
convert('4660', 10, 16, 16); // '0000000000001234'
// signed
convert.signedHexToDec('ffffffffffffffff'); // '-1'
convert.signedDecToHex('-1'); // 'ffffffffffffffff'
`
```
npm install
npm test