comparing two numbers with the decimals

Can someone tell me how do I comapre two numbers with the decimals in UNIX shell scripting

I understand "-gt" can be used only for integers

Regards, Giri

Hi Giri,
-le , -lt , -eq , -gt also work.Is this what you want ?

Thanks and regards,
Gideon.

just a hint, (not exact solution)

multiply both the operands to a larger value (10^12) and then do the operation

Thanx matrixmadhan. Actually I had implemented matrixmadhan idea only and it worked. Thanks for the help dudes

preethgideon, -le , -lt , -eq , -gt work only for comparing integer values

If you want to compare two numbers with decimals provably you will do with awk.

Bye