awk command

Hi,
I wrote K shell program. In that I have to capture floating point numbers. Integer in K shell truncates the floating point numbers into Integers. Iam trying to use 'awk' in this context.
I have to capture the number which is a result of No of days/86400 including the decimal part. Can this be done without using awk. Please advice me. If we have to use awk. How can I do that

Thanks
Krishna

You can use the calculator provided by your flavort of UNIX, it's usually bc (dc). In AWK, it's bascically multiplying numbers like you would normally do (1.2 * 2.3).

just try awk {'print ${days}/86400'}

if you are going to use bc (instead if dc)....note the 'scale'...which defines the number of decimal places to hold...very important!! see the man page for bc.