Struts 1.x <bean:write format="0.00%"> help?

Hi Members,

This issue is very urgent;

Im using <bean:write format="0.00%"> tag for displaying numbers in percentage format, but when i total all my values its showing as "100.01%" but i need it to be rounded of to "100%";

There is some logic in doing this:

For Eg: 43.567 = 43.56% (here the number after two decimal point is > than 5 and the number before is (6) a EVEN number '.567' so we can leave it as such)

43.576 = 43.58% (here the number after two decimal places is > than 5 and the number before is (7) which is a odd number '.576' so we can add one number to it and it can 43.58%

How to use this logic in 'FORMAT' tag of <bean:write>

Looking forward for early reply.

Thanks and Regards,

Prabhu.