Is there a way to specify a min and max for settings.yml for a plugin?

Weird thing is that it resets the value to back to 0.0 when I enter an invalid number but only upon refreshing. But no errors are appearing on the UI side either way.