首页 > 解决方案 > 如何在 android 中从 excel 中获取 20.67 美元的数据

问题描述

我正在使用 Apache POI 从 excel 中获取数据。他们提供了一些类型来从 excel 中获取数据。但是他们没有给出任何代码来从 excel 中获取货币值。

任何帮助将不胜感激。

 if (currentCell.getCellType() == Cell.CELL_TYPE_STRING) {
                        cellValue = currentCell.getStringCellValue();
                    } else if (currentCell.getCellType() == Cell.CELL_TYPE_NUMERIC) {
                        cellValue = "" + currentCell.getNumericCellValue();
                    }  

标签: androidexcelapache-poicurrency

解决方案


推荐阅读