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