make sure floats and integers can be properly parsed

* at the end of statements
* only when they're legitimate (e.g., 1.1.2 is :1.1.2, not 1.1)