I\'m new to Java and trying to take a BigDecimal (for example 99999999.99) and convert it to a string but without the decimal place and trailing numbers. Also, I don\'t want
private void showDoubleNo(double n) { double num = n; int decimalPlace = 2; BigDecimal bd = new BigDecimal(num); bd = bd.setScale(decimalPlace,BigDecimal.ROUND_UP); System.out.println("Point is "+bd); }