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

77
Views
How to handle Measurement unit to string

I my application there's four types of Measurement unit.

  1. kg
  2. Height (cm)
  3. Width (cm)
  4. Length (cm)

So I'm putting this all with a Double as it should, but when I Try to show this on TextView if the value is not a fraction, like 1kg or 1cm, it will show like this : 1.0 cm and 1.0 kg. There's any Library that it could ignore the zero unless if was is necessary, something like : 1.2 or 4.5.

over 4 years ago · Santiago Trujillo
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!