I am trying to achieve this in Linux sell
set a=1.2345
set b=2.34
if (abs(a-b)>1.2) then
...
endif
There are several issues that I am facing:
- dealing with floating point
- comparison ( using $ vs not using it)
- calculating the absolute value
I am not able to resolve my issue and handle all of them at once. I have searched many many pages and some solutions don't work for my me. For example I don't seem to have the abs function.
Any help would be greatly appreciated.