Apache的POI - 千位分隔符 [英] Apache poi - Thousand separator
本文介绍了Apache的POI - 千位分隔符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你知道我怎么可以设置千sepator和格式有这样的价值呢? 403.000
Do you know how can I set the thousand sepator and have a value formatted like this? 403.000
我使用Apache的POI 3.8和Java。
我用Google搜索了很多,但我没有找到答案。我不能用一个字符串值,因为我的公式不能以这种方式正确评估。任何帮助吗?谢谢!
I'm using apache-poi 3.8 with Java. I googled it a lot but I didn't find an answer. I can't use a string value because my formulas are not evaluated correctly in this way. Any help? thanks!
我已经试过这样的事情:
I've tried something like this:
cellStyle.setDataFormat(creationHelper.createDataFormat().getFormat("#.##0"));
但它不能正常工作。
but it doesn't work..
推荐答案
好吧,我发现它:格式必须是这样的:#,## 0
Ok, I found it: the format must be this: "#,##0"
这篇关于Apache的POI - 千位分隔符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文