Need Help with magnitude

Hello, I have trouble figuring out how magnitude works. This would be helpful if someone can explain it to me

Basically with magnitude you can use it to detect how far or how close Point A (Example) is close to Point B (Example).

An example would be
local Distance= (PointA.Position - PointB.Position).Magnitude