我正在做一个报告,我需要在一个变量中加入4个变量。如果我单独处理这些变量,我可以毫不费力地格式化它们。但是当我将它们合并到一个字符串中时,双精度值是0.0而不是0.00$F{someDoubleField} + "a string" + $F{anotherDoubleField} + "another string"0.0 a string 0.0 another string0.00 a string 0.00 another string
请记住,iReport使用Java,
我使用FORMAT(value, 'C')函数在我的结果集中显示美元金额。我的value的数据类型是数字。当将ORDER BY设置为按此函数排序时,它似乎是按美元金额的第一位数排序,因此$9.00在$8,500.00之前。How do you ORDER BY the FORMAT(value,'C')