Skip to content

Tag: fixed-point

fixed point arithmetics in java with fast performance

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 concretely – money and percentages.) I used Java’s own BigDecimal now, but I found out, that it’s really slow and it starts to show in my application. So I want to solve