ab
accounting-big
npm i accounting-big
ab

accounting-big

A lightweight JavaScript library for arbitrary-precision number, money and currency formatting - fully localisable.

by Matt Venables

1.0.1 (see all)License:MITTypeScript:DefinitelyTypedCategories:Node.js Accounting
npm i accounting-big
Readme

accounting-big

Version Build Status Dependency Status

Arbitrary-precision number, money and currency formatting for the browser or the server.

accounting-big is a fork of accounting.js which has been updated to support arbitrary-precision numbers. It can handle any number without risk of rounding or precision errors, which is extremely important when working with money.

Installation

yarn add accounting-big

Usage

import 'accounting' from 'accounting-big';

accounting.formatMoney('1234567.2');
// => "$1,234,567.20"

The full API can be found on the accounting.js website.

Testing

yarn test

Downloads/wk

158

GitHub Stars

3

LAST COMMIT

4yrs ago

MAINTAINERS

1

CONTRIBUTORS

17

OPEN ISSUES

0

OPEN PRs

0
VersionTagPublished
1.0.1
latest
4yrs ago
No tutorials found
Add a tutorial