r/shell • • Apr 11 '23

Logic for variable decimal value

Hoping someone here can help. Pretty sure this is a noobish question but im out of ideas.

I have a numerical variable to which i need to increase a numbers decimal digits in bash.

Ex. if VAR = 5

NUM = .00001

if VAR = 6

NUM = .000001

1 Upvotes

4 comments sorted by