android - 如何在 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();
}
解决方案
推荐阅读
- c# - R.NET 获取 Pairlist 值或将 Pairlist 解析为 Dictionary
- r - 在列表的两个元素中捕获不相等的值
- java - Springboot集成测试:在bean初始化之前用pwd更新application.yml属性
- reactjs - 为什么我需要向 Switch 组件提供位置对象才能使退出动画起作用?
- ecmascript-6 - 为什么 `jest.spyOn` 不能在我的 util 类上工作?
- jmeter - 在 jmeter 中将 .yml 文件上传到 graphql
- reactjs - Guzzle:无法捕获异常详细信息
- python - 根据最近的多边形 acrpy 填充点字段
- sql - 2017 年售票量最低和最高的月份是哪一个月?
- java - Android Studio Learning - 简单的 2D 游戏应用;如何让 SurfaceView 正常工作?