Change the inputType of TextEdit to numberDecimal instead of text to restrict only for entering decimal/integer numbers