About number_input for very small number

Hi @Sunix_Liu -

Adding the format parameter worked for me:

import streamlit as st

temp = st.number_input(
    label="test",
    min_value=0.000000,
    step=0.000001,
    max_value=0.0005,
    value=0.0000045,
    format="%f",
)

Best,
Randy

2 Likes