currently I have the following code
it comes out to something like this
It depends on how precise you want to be. It you want to accept only integers, than:
If you want floats with, for example, two digits after decimal point: