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

108
Views
Change amount format to how we enter in swiping machine

Suppose we want to enter 67.38 dollars in an amount field the following should be the way in which it should be formatted.

0.06

0.67

6.73

67.38

This is basically mocking the way we enter amount in a swiping machine.

So the foramtAmount function should fulfill the above requirement. The setAmount is used to set the amount of a react state variable

 onChange={(val) => {
   setPayoffAmt(formatAmount(val))
}

const foramtAmount = (val) => {
   //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!