java Dafa is good

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
       }
}

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324838162&siteId=291194637