Incrementing a variable by 0.025 for each loop in BASH (NOT loop variable)

I wanted to increment a variable, k inside a loop. Each increment is by 0.025. I tried using:

let "k += 0.025"

and

let "$k += 0.025"

and

k += 0.025

and many other variations. Does anyone know how to accomplish this?

5
задан Dave Jarvis 1 April 2013 в 19:38
поделиться