Search Results

Search: Posts Made By: amit_57
46,951
Posted By amit_57
Thanks all, in case you are interested -- I ended...
Thanks all, in case you are interested -- I ended up using sed:

floatVar1=$(echo $Var1 | sed 's/\([0-9]*\(\.[0-9]*\)\?\)[eE]+\?\(-\?[0-9]*\)/(\1*10^\3)/g;s/^/scale=30;/'| bc)

There are some...
46,951
Posted By amit_57
Bash Scientific Notation
Hello there,

I have a script that must be written in bash that has to deal with reading in values from a file (in scientific notation), and requires executing some mathematical operations with...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 12:41 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy