I have a awk script that grabs numbers that I want. But the problem is they are in this kind of format: 1.8200E+02
In bash script this decimal notation is not supported so I was wonering anyone can help me with this problem.
My last answer was wrong, sorry about that. You can use printf for this:
printf '%.0f' 1.8200E+02
182
I don't know of a better solution...
number=1.8200E+02
python -c "print float('$number')"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With