Convert a number a.bed to normal form
import java.math.*; import java.util. *; public class Main { public static void main(String[] args) { Scanner cin = new Scanner (System.in); BigDecimal a = cin.nextBigDecimal();//The index can be read a = a.stripTrailingZeros();//Clear the 0 at the end System.out.println(a.toPlainString()); //toPlainString returns the string representation of this BigDecimal without the exponent field } }