Numerical precision is the degree of exactness preserved when values are represented or calculated. Choosing the right numeric type matters because a seemingly small mismatch can create later problems in correctness, performance, or memory use. section 2.4
Representing monetary values
Represent a price with BigDecimal rather than float when manipulating monetary values requires precision. The practical rule is simple: choose a numeric type whose behavior matches the exactness the domain demands. section 2.4








