I always multiply instead of dividing... So if you want to make something half size use x * .5 rather than x / 2.
Using this method you will never get division by 0 and multiplying by 0 gives a result of 0 safely.
Using this method you will never get division by 0 and multiplying by 0 gives a result of 0 safely.