# How do I calculate a unit vector?

If we have some vector A and its magnitude is $A$ then the unit vector in it's direction is given as :
a = A/$A$ and it follows that,
A = $A$ a