Interesting scenario. why do you need to convert this to int - that too in the script?
Would you be able to give some more background? I am not sure whether script is designed for any arithmetics.
------------------------------
Cheers,
Sajid Abbas Malek
Al-Futtaim Technologies - Dubai
------------------------------