Because Altium uses imperial units for storage, this leads to rounding errors. This code tries to correct those rounding errors for the user.