Parse float/double and only allow digits and 0 or 1 dot - C#