Armor provides a certain amount of damage resistance against different types of damage. This value is obviously not just substracted from the damage, but I don't see any information in the game on how it actually works.
What is the formula for the reduction of damage base on the damage resistance of your armor?