Using step lower than 0.01 for slider with floats

Hello,

I am using a slider with float values, but it seems that choosing a step lower than 0.01, for example 0.001, is treated as if it was 0.01.

Any solution for fixing this?

1 Like

Hi @HugoLaurencon, welcome to the Streamlit community!

You should be able to set the precision as shown by the following example:

Best,
Randy

4 Likes

Depending on your situation, you could also consider using log values for the slider.

Thanks Randy, that’s exactly what I was looking for!
It works with sliders too.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.