@ilihub/decimal
Decimal number system conversion typescript functions
Installation
pnpm add @ilihub/decimal
npm install @ilihub/decimal
yarn add @ilihub/decimal
Usage
import { Decimal } from "@ilihub/decimal";
const decimal = new Decimal(65);
const ascii = decimal.toAscii();
console.log(ascii);
const binary = decimal.toBinary();
console.log(binary);
const hexadecimal = decimal.toHexadecimal();
console.log(hexadecimal);
const octal = decimal.toOctal();
console.log(octal);
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.