Converting exponential value in java to a number format

前端 未结 12 1461
旧巷少年郎
旧巷少年郎 2020-12-06 05:47

I am trying to read the values from excel sheet using java. When i type more than 10 letters in a cell in excel it is displaying in exponential form like \"9.78313E+2\". but

12条回答
  •  感情败类
    2020-12-06 06:17

    You can convert as follows, for example:

    new BigDecimal("406770000244E+12").toBigInteger();
    

提交回复
热议问题