I am currently building a XML based Jasper Report in which I am trying to add a tax percent onto the cost.
A problem occurs when I use sum(//net-total)
to value calculate the total cost. When the summed total has no decimal places it returns and Integer and I need a double.
I have tried sum(//net-total) * 1.0
but it doesn't seem to work.
Does anyone have any ideas?
Please feel free to correct me if I am taking the wrong approach.