float unitCost = 9.48f; System.out.println("The unit cost is $" + unitCost); BigDecimal fpValue = new BigDecimal(unitCost); System.out.println("The float value is $" + fpValue);