Some user preferences on a smart speaker use number values which include a decimal fraction. For example the brightness preference as a percentage in fraction form. Another important value for an Internet of Things device is the download speed. Often the download speed is given in Megabits per second (Mbps) and typically will involve a decimal number.
Here is the full dialog that the program should create with the user. Read, copy and re-use the code you already have for entering the brightness value.