@rbxts/number-manipulator
v1.1.3
Published
Number manipulator in roblox-ts
Downloads
4
Maintainers
Readme
@rbxts/number-manipulator
Installation:
npm i @rbxts/number-manipulator
Example Usage
import { NumAbbr, formatNum, abbreviateBytes } from "@rbxts/number-manipulator";
const numAbbr = new NumAbbr(0, ["K", "M"]);
print(numAbbr.abbreviate('100')) // 100
print(formatNum(1000)) // 1,000
print(abbreviateBytes(1024)) // 1 KB