Fix decimal point being allowed in non-base-10 numbers.