Hi, im trying to get, add several numbers such as:
let C=$A+$B
where variables have values as:
A=00,000000011
B=00,003481000
when I execute this, I have this output:
let: C=00,000000011+00,003481000: value too great for base (error token is "00000001"....
I know it interprets as an octal value.
Then, I've put:
let C=10#$A+10#$B
I put 10# before the variables for interpret decimal value.
I have this output:
C=10#00,000000011+10#00,043083000: value too great for base (error token is "00000001"....
How I can make this sum, with bash scripting?
Thanks.
let C=$A+$B
where variables have values as:
A=00,000000011
B=00,003481000
when I execute this, I have this output:
let: C=00,000000011+00,003481000: value too great for base (error token is "00000001"....
I know it interprets as an octal value.
Then, I've put:
let C=10#$A+10#$B
I put 10# before the variables for interpret decimal value.
I have this output:
C=10#00,000000011+10#00,043083000: value too great for base (error token is "00000001"....
How I can make this sum, with bash scripting?
Thanks.