remove trailing zeros from number_with_precision (not only if all decimals are zero)