I have a script that I use to tally up a list of dollar amounts. I am having a problem with it truncating at the 8th digit. If the dollar amount like 123456.78 i get 123456.7 for output.
Code line is:
TOTAL=$(echo $TOTAL $DOL | awk '{print $1+$2}')
Where $DOL is next value to add to total.
Thanks in advance.
Code line is:
TOTAL=$(echo $TOTAL $DOL | awk '{print $1+$2}')
Where $DOL is next value to add to total.
Thanks in advance.