Big D or BigDecimal is a Class of the java.math package.
By internally storing decimals as String, the BigDecimal covers the precision issue of doubles.
By internally storing decimals as String, the BigDecimal covers the precision issue of doubles.
Program: System.out.println(0.03 - 0.02); -> 0.0999999999999999
Programmer: Oh shit! It's time for the Big D!!
Programmer: Oh shit! It's time for the Big D!!
by f0a677 March 06, 2018