I Want to do a sub with two big number
my purpose is
1805334111369276485744644020321551471447190030955050085289-3369574570478873127315415525946742317481702644901195284480
I try with
echo $((1805334111369276485744644020321551471447190030955050085289-3369574570478873127315415525946742317481702644901195284480))
My result is: 3160661815551241129
but it's not correct.
I can do the similar operation in console chrome and I Have
-1.5642404591095965e+
How can I do this operation in bash?
I tried even with expr, but without lucky
It's ok to check if a number is greater then another
in shell
echo $((1805334111369276485744644020321551471447190030955050085289>3369574570478873127315415525946742317481702644901195284480))
result: 1
same operation in chrome
1805334111369276485744644020321551471447190030955050085289>3369574570478873127315415525946742317481702644901195284480
result:false
And chrome is right