Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

179
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!