Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

180
Visualizações
Javascript thousand separator on negative and decimal number without leading zeroes

I am making a table that has input with price on every row, so when the user input positive number, or negative number, or decimal number or negative with decimal number, it need to has thousand separator on the number and should not have leading zeroes. I am avoiding library because using library, I need to change so much code, but i am welcome on library with minor fix. There are many stackoverflow's post on thousand separator without leading zeroes, but the post only dealing with one type number like positive or negative number, what I need is a number that is negative and decimal as well. I prefer regular expression so I don't have to change a lot of code.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda