It is not mathematically incorrect, and if you were writing me a computer program to understand numbers input by people I would include .5 (for example) as a test case.
Not all countries use the "." as decimal point, and so in some countries ".5" would be lexically incorrect; it might be '5 or ,5 and for more on this