Hi,
I'm trying to generate a report that has several floating values.
In order to get it precise, I used BigDecimal for all the variables.
I found out that EL in
jsp would use A.multiply(B) when saying something like:
and both A and B are BigDecimal
The problem is that A.multiply(B) means that the scales will be added. So, if A has a scale of 2 and B has a scale of 2 I will get a scale of 4 !
So if A = 2.00 and B = 3.00 and I do ${A*B} i'll get 6.0000
Is there any way I can get only 6.00, I want exactly the same decimal places (two) not more not less
Thanks,
[ March 15, 2008: Message edited by: Bear Bibeault ]