Fix an exponential-parsing bug.

Closes #677