Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

114
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda