Skip to content

decbin — Decimal to binary. Returns a string containing a binary representation of the given number argument.

License

Notifications You must be signed in to change notification settings

dmitrylebedev/decbin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

decbin Build Status

decbin — Decimal to binary. Returns a string containing a binary representation of the given number argument.

Install

$ npm install decbin

Usage

const decbin = require('decbin');

decbin(25);
//=> "11001"

API

decbin(input, [options])

input

Type: number

License

MIT © Dmitry Lebedev

About

decbin — Decimal to binary. Returns a string containing a binary representation of the given number argument.

Resources

License

Stars

Watchers

Forks

Packages

No packages published