fixed point arithmetics in java with fast performance

前端 未结 4 1817
盖世英雄少女心
盖世英雄少女心 2020-12-17 01:42

I need to represent some numbers in Java with perfect precision and fixed number of decimal points after decimal point; after that decimal point, I don\'t care. (More concre

4条回答
  •  时光说笑
    2020-12-17 02:22

    decimal4j is a Java library for fast fixed precision arithmetic based on longs with support for up to 18 decimal places.

    Disclaimer: I am involved in the decimal4j project.

提交回复
热议问题