Good point, although for sake of clarity it didn't do a lot of error checking. By the same token it would accept "<>" as the number zero.
You could modify it to include floats, for example, and then you need to check you only get a single decimal point.
I've added a note to my page to point out the problem you raised. (I haven't changed the code, just pointed out the possibility of that problem).