command for converting string to integer

Hi ...

I am trying to calculate the time needed for a command to execute..

but the resulting value is getting as string..

so i am not able to use "expr " command..

please help me to convert the value to integer so that i can proceed with my script..

Regards

esham

Use bc

Say TIME=0.02

echo $TIME+1 | bc -l

will give

[~]$ echo $TIME+1 | bc -l
1.01

vino