currency.js is a lightweight JavaScript library designed to handle currency values with precision by avoiding common floating point arithmetic issues inherent in JavaScript. It achieves this by internally representing values as integers, which allows for accurate calculations even when dealing with decimals. The library provides a simple and intuitive API for performing operations such as addition, subtraction, multiplication, and division on monetary values. It is optimized for performance and minimal footprint, making it ideal for applications where bundle size and speed are important considerations. currency.js also includes formatting capabilities, allowing developers to display currency values in user-friendly formats with customizable symbols and separators. Its simplicity makes it particularly appealing for smaller projects or cases where a full financial library is not required.

Features

  • Integer-based arithmetic to prevent floating point errors
  • Simple API for common financial calculations
  • Lightweight and fast with minimal bundle size
  • Customizable currency formatting options
  • Support for chaining operations
  • Works seamlessly in both browser and Node.js environments

Project Samples

Project Activity

See All Activity >

Categories

Financial, Libraries

License

MIT License

Follow currency.js

currency.js Web Site

Other Useful Business Software
The CI/CD Platform built for Mobile DevOps Icon
The CI/CD Platform built for Mobile DevOps

For mobile app developers interested in a powerful CI/CD platform for mobile app development and mobile DevOps

Save time, money, and developer frustration with fast, flexible, and scalable mobile CI/CD that just works. Whether you swear by native or would rather go cross-platform, we have you covered. From Swift to Objective-C, Java to Kotlin, as well as Xamarin, Cordova, Ionic, React Native, and Flutter: Whatever you choose, we will automatically configure your initial workflows and have you building in minutes.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of currency.js!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript Financial Software, JavaScript Libraries

Registered

2026-03-19