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?

Hi @HugoLaurencon, welcome to the Streamlit community!

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

Best,
Randy

2 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.