How can I get the difference between two + or - floats?

I’ve laid out a bunch of maths doing the algebraic calculations, but sure there’s a neater way than this?

You can get the absolute value of the difference between the 2

math::abs(a-b)

ex1 :-3,-2 —> abs(-3 - -2) —> abs(-1) —> 1

ex2 :-3, 2 —> abs(-3 - 2) —> abs(-5) —> 5

ex3 :3, -2 —> abs(3 - -2) —> abs(5) —> 5

ex4 :3, 2 —> abs(3 - 2) —> abs(1) —> 1

https://s23.postimg.org/sl1be55m3/math_Abs.png

If the values are only between -1 and 1 though. My values are mainly decimals. Should’ve specified that in the main post sorry.

Sorry, I’ve been an idiot. My maths isn’t too hot. Thanks for your answer.