Is there a way to operate with decimals in Bash? Trading, obviously. I have tried with let
, but it always throws me an error with the decimal part.
Thank you very much.
Is there a way to operate with decimals in Bash? Trading, obviously. I have tried with let
, but it always throws me an error with the decimal part.
Thank you very much.
Depending on the tools you have installed on the system, you will be able to perform operations with decimals, but
bash
it does not support them internally :In Spanish:
You can tell if the integer size is 64 bits by trying:
Making use of tools installed on the system:
To store results you can use:
A test run could be: