小编sum*_*mit的帖子

如何使用java从控制台中的excel表使用poi(2.5)打印大于7位的数字

检索它以大数字的指数格式给出的值.

while (cells.hasNext ())
{
HSSFCell cell = cells.next ();

System.out.println ("Cell No.: " + cell.getCellNum ());

/*
 * Now we will get the cell type and display the values
 * accordingly.
 */
switch (cell.getCellType ())
{
 case HSSFCell.CELL_TYPE_NUMERIC :
 {

  // cell type numeric.
  System.out.println ("Numeric value: " + cell.getNumericCellValue());


  break;
 }
Run Code Online (Sandbox Code Playgroud)

它给出数字大于7eg的数字的值.(12345678),如指数.你帮我以相同的格式得到值.

java apache-poi

10
推荐指数
2
解决办法
5087
查看次数

标签 统计

apache-poi ×1

java ×1