0

in bash script i have to change the value of $R , so i have to division to decimal number but it's impossible

R=$((R/(15.6))) #for convert move in millimeter to second 

i try to

R=$((R/(156/10))) #for convert move in millimeter to second

but it doesn't work too

Archemar
  • 31,554
armeen
  • 1

1 Answers1

1

bash only handles integer numbers, but you could simply use bc to do the calculations.