Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash floating point variables

bash do not support floting point in varibles. so 
use seq command output, 

for fp in $(seq 1.0 .01 1.1)
do
     echo $fp; other stuff too
done

https://www.oreilly.com/library/view/bash-cookbook/0596526784/ch06s13.html
Source by www.oreilly.com #
 
PREVIOUS NEXT
Tagged: #bash #floating #point #variables
ADD COMMENT
Topic
Name
4+2 =