Numeric format with a single decimal

How can I do so that it only allows me to add a single decimal digit, that is, limit the decimal value to a single digit. And if the user enters more than one decimal value, for example 5.45, it cannot and is restricted to a single decimal value after the comma.
decimals
one-decimal

On input, the basic numeric formats accept positive and numbers in standard decimal notation or scientific notation. Leading and trailing spaces are allowed. An empty or all-spaces field, or one that contains only a single period, is treated as the system missing value.

In scientific notation, the exponent may be introduced by a sign (‘+’ or ‘-’), or by one of the letters ‘e’ or ‘d’ (in uppercase or lowercase), or by a letter followed by a sign. A single space may follow the letter or the sign or both.