Limit the precision of the percentage in the diff template.