The answer is quite simple, and can be displayed as a fraction of the outcome. The denominator would be 100, due to there being 100 attempts, and the numerator would be 47, because 47 were heads. Therefore, you get 47/100
When both integers have the same value, the difference is zero. The difference between a positive and a negative integer can be positive or negative. When you subtract a negative integer from a positive integer, the difference is always positive this might help