Only set precision if it is non-zero