Number input component when rederd.
I set number_input min_value = 1 and max_value = 99.
I also set SQLit3 columns type REAL (4,2) total 4 characters including 2 decimal point.
But when i enter my data and show table its show two number and four decimal points like 10.0000,
i want to show like 10.00.
what is the solution ?
Possible solutions:
- You could use Python’s round off functionality to round the decimal position according to your needs.
- Else you can use the streamlit’s
number_input
feature to handle the value range.
But as far as your situation is concerned it’s better to go with the first way as precision would vary every time.