Mask for Number Field

Hi, is there a solution to to allow only numbers with one digit like 123,0 ? A mask editor like in text input fields would be great, like:

?999,9 inch

I could use text input fields but there’s no possibility for min/max values.