distance()

Returns the distance between two stamps or two numbers.

If it's stamps you're getting the distance between, it's reported in pixels.

This program draws two stamps then reports the distance between them.

You can also use the distance command to get the difference between two numbers.