Java: How to Convert Integer, String, Float, and Double to BigDecimal If you haven't yet needed this, you will eventually.