In the Godot documentation on Vector Math this is suggested to be performed as follows:

```
var a = Vector2(2,4)
var m = sqrt(a.x*a.x + a.y*a.y)
a.x /= m
a.y /= m
```

However I do not get lengths (or magnitudes) of 1 as I should. I'm quite sure this is due to my poor math skills. Or maybe it's not supposed to be 1?

Could someone explain this to me? I've tried looking at other tutorials on the subject but there seems to be many ways to do this and with all of them I end up with different results and non of them equal to 1.