For example:
BigDecimal bd = new BigDecimal("3.40256010353E11");
Then convert it to a string:
String str = bd. toPlainString();
If the length of the number is in the range of int, it can be converted to int:
int a = Integer.parsInt(str);
If the length of the number is not in the range of Int, it is not the number you want! !