gpt4 book ai didi

formatting - iReport 以百分比模式乘以

转载 作者:行者123 更新时间:2023-12-02 17:30:52 34 4
gpt4 key购买 nike

我正在使用 iReport 2.0.5(因为我必须这样做),我在格式化百分比方面遇到了一些问题。当我使用未格式化的 double 时,这就是我得到的:

0
22,22
5,555 (this is the average of the whole group)
100
100 (this is the average of the whole group)

平均计算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)

如何阻止值发生变化?

最佳答案

在不改变(分割)您的值(value)的情况下,您还可以做什么:

试试这个模式:

 #,##0.00 ' %'

当您将 % 放在引号 ('%') 中时,您的值将不会乘以 100。

干杯!

关于formatting - iReport 以百分比模式乘以,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33413330/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com