GMo*_*ran 2 formatting jasper-reports
我正在使用 iReport 2.0.5(因为我必须这样做),并且我在格式化百分比时遇到了一些问题。当我使用未格式化的双精度时,我得到的是:
0
22,22
5,555 (this is the average of the whole group)
100
100 (this is the average of the whole group)
Run Code Online (Sandbox Code Playgroud)
平均值计算OK
但是当我使用 iReport 2.0.5设置模式#,##0.00 %时,会发生这种情况:
0,00 %
2.222,00 %
555,50 % (this is the average of the whole group)
10.000,00 %
10.000,00 % (this is the average of the whole group)
Run Code Online (Sandbox Code Playgroud)
如何阻止价值观改变?
在不改变(划分)你的价值的情况下你还可以做什么:
尝试这个模式:
#,##0.00 ' %'
Run Code Online (Sandbox Code Playgroud)
当您将%放在引号 ( '%' ) 中时,您的值将不会乘以 100。
干杯!