@ilihub/octal
v1.0.3
Published
Octal number system conversion typescript functions
Downloads
5
Maintainers
Readme
@ilihub/octal
Octal number system conversion typescript functions
Installation
# if you're using pnpm
pnpm add @ilihub/octal
# or, if you're using npm
npm install @ilihub/octal
# or, if you're using yarn
yarn add @ilihub/octal
Usage
import { Octal } from "@ilihub/octal";
const octal = new Octal("101");
const ascii = octal.toAscii();
console.log(ascii); // A
const binary = octal.toBinary();
console.log(binary); // 001000001
const decimal = octal.toDecimal();
console.log(decimal); // 65
const hexadecimal = octal.toHexadecimal();
console.log(hexadecimal); // 41
Sponsors & Backers
Support the development of new open-source projects from ilihub through crowdfunding.
The core of ilihub is our crowd-funded open-source projects, licensed under the permissive MIT license. Sponsorship increases the rate of bug fixes, documentation improvements, and feature development.