> Hmm, AFAIK, bash arithmetic supports integer only. I tried below, and bash did > not return floating value... > > $ avail=90000; echo $((avail/1024)) > 87 > > Assuming bash arithmetic supports integer only, -1 will not be required in the > calculation. Can't remember how I ended up with the above. Anyway, works just fine without the printf.