Since the following command using bc does not work for numbers in scientific notation, I was wondering about an alternative, e.g. using awk?
sum=$( IFS="+"; bc <<< "${arrValues[*]}" )
|
With zsh (in case you don't have to use
With If you need the kind of precision that
|
|||||
|
Perl solution:
|
|||
|