Skip to content
Marco Terzer edited this page Nov 5, 2015 · 3 revisions

Release 1.0.1

Nov 2015

We are proudly announcing the first release of decimal4j, an open source Java library for fast fixed precision arithmetic based on longs. Some of the main features include

  • Decimal numbers with up to 18 decimal places
  • Efficient conversion from and to other number types (e.g. double)
  • Zero garbage API (with unscaled long values) for HFT and low latency applications
  • Support for all rounding modes and optionally overflow checks

The library is well tested (coverage 95-100%) and provides a rich interface with many arithmetic operations and conversion methods to directly inter-operate with other data types. We see it as an alternative and complement to the BigDecimal or possibly an alternative to the double for performance and garbage sensitive applications. And if you don’t like all of this you may still like our DoubleRounder utility to round a double value to an arbitrary decimal precision between 0 and 18 — efficiently and garbage free!

Check out our comprehensive documentation and performance benchmarks on GitHub:

Clone this wiki locally