I am trying to read values from excel and perform some calculations but I am getting below error:
expr 2.326227180240883E7 / 8.509366417956961E8
expr: non-numeric argument
Can anyone let me know how do i convert thse exponential numbers to decimal.
echo "2.326227180240883E7 / 8.509366417956961E8" |awk -F "/" '{print $1 / $2 }'
0.0273373
1 Like
yazu
3
echo "2.326227180240883E7 / 8.509366417956961E8" | bc -l
.27337254808206913239
??? Why wrong answer?
---
Ok. "bc" doesn't understand scientific notation. It's for numbers with arbitrary precision.