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

144
Vistas
Is there any C# String.Format() equivalent function in Javascript for formatting decimal values?

I am using c# string.Format(format,value) function but I want to achieve this in javascript which I would like to give me the same result which c# give me. Below is the example in c# :

string.Format (62.505152, {0:0.0}) this will return me 62.5

string.Format (62.505152, {0:0.00}) this will return me 62.51

string.Format (62.505152, {0:0.1%}) this will return me 62511%

How can I achieve above examples in javascript which should give me the same return results?

about 4 years ago · Juan Pablo Isaza
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