norm_to_integral zero division safety