I need the perfect algorithm or C# function to calculate the difference (distance) between 2 decimal numbers.
For example the difference between: 100>
You can do it like this
public decimal FindDifference(decimal nr1, decimal nr2) { return Math.Abs(nr1 - nr2); }