Skip to content

Glossary: Software Design Patterns in Java

BigDecimal

A Java class for exact decimal numbers, often used for money instead of `double` because `double` can introduce tiny rounding errors. Kettle & Crane's examples use `double` dollars for simplicity, which doesn't change how any pattern works.

Where the book teaches it