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
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.