A large binnacle compass on a ship has large metal balls on either side to help compensate for the magnetic attraction.