G_numeric: fix numeric evaluation with trailing zeros and y != 1.