__Distance__ **= Mag (** __X__ AS Float **,** __Y__ AS Float **)**

This function returns `Sqr((`

.__X__ ^ 2)+(__Y__ ^ 2))

This is the length of the hypotenuse of a right-angle triangle with sides of length __X__ and __Y__, or the distance of the point (__X__,__Y__) from the origin.

This is the same function as Hyp.

To convert rectangular coordinates to polar coordinates, use this function to get the distance and Ang to get the angle.

Mag(1,1)

```
1.414213562373
```

Mag(3,4)

```
5
```