r/shell • u/Inspiri0 • 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
View all comments
Show parent comment
1
u/Inspiri0 Apr 13 '23
Thank u!