@codinasion/decimal-to-binary
v1.0.2
Published
Converts decimal numbers to binary numbers
Downloads
2
Maintainers
Readme
@codinasion/decimal-to-binary
Converts a decimal number to binary.
Installation
# if you're using pnpm
pnpm add @codinasion/decimal-to-binary
# or, if you're using npm
npm install @codinasion/decimal-to-binary
# or, if you're using yarn
yarn add @codinasion/decimal-to-binary
Usage
import { DecimalToBinary } from "@codinasion/decimal-to-binary";
const decimal = 128;
const binary = DecimalToBinary(decimal);
console.log(binary);
// Output
// 10000000