1

Multiplay with decimal numbers in bash

view story
linux-howto

http://askubuntu.com – When i run p=0.1 k=2 while [ $p \< 1 ] do echo $p p=$(echo "scale=2; $p*$k" | bc) done i have this result 0.1 .2 .4 .8 What can i do to have 0.1, 0.2, 0.4 and 0.8 ? (HowTos)