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

116
Vistas
BigInt rounds a number

I have few number which I want to convert into string or BigInt because I want to send that number into smart contract but it automatically rounds the number

a = 10000000000000000000010; 
convertIntoStringWithoutChangingNumber(a) //'10000000000000000000010' => this should be string

sample inputs and outputs :
10000000000000000000020 // '10000000000000000000020'
10000000000000000001900 // '10000000000000000001900'
10100000000000000000000 // '10100000000000000000000'

I have tried few function but it all rounds off the last numeric value to 0. Simply need any way to convert this number into string without altering any digits.

about 4 years ago · Santiago Gelvez
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