SyntaxFix
Write A Post
Hire A Developer
Questions
Just use abs(x - y). This'll return the net difference between the two as a positive value, regardless of which value is larger.
abs(x - y)