Bigdecimal, Java.
measuring to 3 decimal points, so make it fixed 4). Big Decimal The BigDecimal class in Java can be used to perform computations using floating-point numbers and obtain correct results. The BigDecimal class supports arithmetic, comparison, rounding, and hashing operations on floating-point values.