| 查看: 590 | 回复: 3 | ||
| 当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖 | ||
wxyuan2014铜虫 (小有名气)
|
[求助]
利用Java读取excel 已有1人参与
|
|
|
请问:我的excel中的数据都是小数点后八位,例如2.33800951。而用程序读取之后的程序只有小数点后两位。这是读取的代码cell = sheet.getCell(i, j); str[j] = cell.getContents();请问怎么改才能把小数点后面的部分全部读出?谢谢! |
» 猜你喜欢
请教限项目规定
已经有5人回复
拟解决的关键科学问题还要不要写
已经有8人回复
最失望的一年
已经有16人回复
存款400万可以在学校里躺平吗
已经有33人回复
求助一下有机合成大神
已经有3人回复
求推荐英文EI期刊
已经有5人回复
26申博
已经有3人回复
基金委咋了?2026年的指南还没有出来?
已经有10人回复
基金申报
已经有6人回复
疑惑?
已经有5人回复
» 本主题相关价值贴推荐,对您同样有帮助:
Free mind
已经有1人回复

wxyuan2014
铜虫 (小有名气)
- 应助: 0 (幼儿园)
- 金币: 92.3
- 散金: 78
- 帖子: 277
- 在线: 122.6小时
- 虫号: 2462935
- 注册: 2013-05-13
- 性别: GG
- 专业: 电气科学与工程

3楼2016-08-08 08:46:51
jianliu67
木虫 (小有名气)
- 应助: 27 (小学生)
- 金币: 4053.5
- 红花: 4
- 帖子: 216
- 在线: 135.7小时
- 虫号: 3511817
- 注册: 2014-11-01
- 性别: GG
- 专业: 计算机科学的基础理论
2楼2016-08-07 02:42:53
jianliu67
木虫 (小有名气)
- 应助: 27 (小学生)
- 金币: 4053.5
- 红花: 4
- 帖子: 216
- 在线: 135.7小时
- 虫号: 3511817
- 注册: 2014-11-01
- 性别: GG
- 专业: 计算机科学的基础理论
|
有, 但是不好. 看下面的解释: http://jexcelapi.sourceforge.net ... .html#getContents() public java.lang.String getContents() Quick and dirty function to return the contents of this cell as a string. For more complex manipulation of the contents, it is necessary to cast this interface to correct subinterface. Returns: the contents of this cell as a string |
4楼2016-08-09 08:17:01













回复此楼