You can make an absolute value of something by putting the |'s around it.
|a-b|
In case the expression is a complex number the result will be the modulus (distance from the origin). So for example:
|3 * e^(1i*pi)|