Getting Started

A lightweight, zero-dependency JavaScript/TypeScript library for precise number formatting. Designed for financial applications, crypto dashboards, and scientific data where precision is paramount.

Unlike standard libraries that rely on floating-point math, the library uses internal string-based arithmetic to handle numbers of any size (including string, number, and bigint) without losing a single decimal point.

Installation

npm install @peter-present/format-number

COPYRIGHT © 2026