hex-frac-dec-frac
Convert a hexadecimal fraction to a decimal fraction.
This is different from hexToDec
from libraries like all-your-base
(as I just learned).
I use this for xkcd Geohashing.
Install
npm install hex-frac-dec-frac
Usage
=== 06323477003894289 === 004563643985457139
Contributing
This is written in ES6 and compiled to ES5 using babel
. The code you require will come from the lib/
directory which gets compiled from src/
before each npm publish
.
Tests
npm test
TODO
- Understand how this works and how its different from
all-your-base
License
MIT