JUnit: Test Ballpark Results With Double Values Hey, even though it's a double, that doesn't mean it has to match exactly.
Java: How to Convert Integer, String, Float, and Double to BigDecimal If you haven't yet needed this, you will eventually.