Answer the question
In order to leave comments, you need to log in
How to compare numbers modulo in bash?
There are 2 numbers. There may be a slight difference between these numbers. I want to compare these numbers with tolerance. Let's say 10 and 13 have a tolerance of 5. "10 - 13 = -3" should look like "-3" is less than "5" in absolute value. I don't know if it's possible to look at numbers modulo in bash? Can bc do this or is it somehow possible?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question