How to find distance from a beacon?

I would like to know exact distance of the user from the nearest beacons to find the user position.