Converting exponential value in java to a number format

前端 未结 12 1493
旧巷少年郎
旧巷少年郎 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:00

    This answer worked for me:

    Double bd = new Double(4445566622);
    System.out.println(bd.longValue());
    // Outputs -4445566622
    

提交回复
热议问题