how to get decimal value
Hi,
ok so i have a small script that takes the time in seconds(this is a very long number like 615.232145457577) and i convert it to minutes or hours by dividing by 60 or 3600 respectively.
I would like to be able to get the result with maybe upto to 2 decimal values.
If i do echo "613.568787987975 / 3600" |bc -l
this gives: .17043577444110416666
How can i just get .17
Thanks
|