Why not get exact distance of beacon?

The distance just a reference.
It calculate by the code of How to find beacon distance by the received RSSI? in Android
If you wan’t get the more exact distance, you can try other algorithms to calculate the distance.
I have no idea to calculate the distance.