I'm trying to make a shell script that takes numeric data that are usually decimal of type 0.00004 and I have to square them. Using "bc" the result I get 0.
Example:
echo "(0.0000003+0.0000005)^2"|bc
0
Looking at the help of bc, he says that I can raise numbers to powers as long as they are whole numbers
In what failure? If you know another method without using bc it does not matter to me ... Does anyone know any other way of doing operations within a script that is somewhat more flexible in that you have to make a slightly more complex account?
Greetings and thanks