In conflicts, the amount which you beat another character's roll by is the amount of damage or failure ranks (see below).
In battles, the difference between your roll and another character's roll determines the damage or failure ranks (refer to below).