dec-to-binary
v1.5.1
Published
A node.js package to convert decimal numbers into equivalent binary numbers.
Downloads
124
Maintainers
Readme
dec-to-binary
dec-to-binary is a nodejs package to convert decimal to binary with just one line of code.
Installation
npm i dec-to-binary --save
Usage
Convert with just one line of code
- Convert decimal numbers into binary with just one line of code. For one of my project, I had to create a tool to convert decimal to binary so, I used Bignumber.js and created one here.
Decimal to Binary conversion:
var decimal = require('dec-to-binary')
console.log(decimal.decimal("10"));
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.