Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

78
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda