Windows 10 will reach EOS (end of support) on October 14, 2025. For more information, see this article.

Caută ajutor

Atenție la excrocheriile de asistență. Noi nu îți vom cere niciodată să suni sau să trimiți vreun SMS la vreun număr de telefon sau să dai informații personale. Te rugăm să raportezi activitățile suspecte folosind opțiunea „Raportează un abuz”.

Află mai multe

decimal symbol is a comma for input type=number but OS is set to a point

  • 1 răspuns
  • 8 au această problemă
  • 214 vizualizări
  • Ultimul răspuns dat de AndrewG2

more options

I have a form with an input <input id="quantity" name="quantity" step="0.01" type="number"> but when I type something like 5.5 it tells me that is not valid. The regional setting in Windows 10 are set to use a point as the decimal symbol, but Firefox will only accept it as a number if I use a comma e.g. 5,5

It also did this on Windows 7. Other browsers do accept the point symbol.

I have a form with an input <input id="quantity" name="quantity" step="0.01" type="number"> but when I type something like 5.5 it tells me that is not valid. The regional setting in Windows 10 are set to use a point as the decimal symbol, but Firefox will only accept it as a number if I use a comma e.g. 5,5 It also did this on Windows 7. Other browsers do accept the point symbol.

Soluție aleasă

I have figured out what was causing it. I had declared the language in html as en-ZA. Changing it to en fixed the problem i.e. <html lang="en">

Citește răspunsul în context 👍 1

Toate răspunsurile (1)

more options

Soluție aleasă

I have figured out what was causing it. I had declared the language in html as en-ZA. Changing it to en fixed the problem i.e. <html lang="en">

Modificat la de AndrewG2