Inconsistent decimal separator in st.number_input

Summary

There are some inconsistencies in displaying floats in st.number_input. Floats with two decimal places are displayed as ‘X,XX’ whereas floats with one decimal places are displayed as ‘X.X’. I tried to set the number format to “%0.2f”, but this did not change the issue.

Steps to reproduce

import streamlit as st
 
st.set_page_config(
    page_title="Test",
    page_icon=":clipboard:",
)

st.title('test')
st.sidebar.title('Test.')



with st.sidebar:

    test = st.number_input(
                label = 'min1',
                min_value = 0.00,
                max_value = 1.00,
                value = 0.44
            )

    test2 = st.number_input(
                label = 'min2',
                min_value=0.10,
                max_value=2.10,
                value=0.4
            )
    
    test3 = st.number_input(
                label = 'min3',
                min_value=0.10,
                max_value=2.10,
                value=0.44,
                format = "%0.2f"
            )

Screenshot 2023-11-02 151430

Debug Info:
Python 3.10.13
Streamlit, version 1.28.0
Using Conda Environment

I was unable to replicate your issue.

image


Debug info:
Python 3.11
Streamlit 1.28
Firefox on Windows