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

277
Vistas
toString(16) returns the same value for different numbers

Currently trying to get the toString(16) method to return a value.

Im using the following code.

`0x${(340282366920938463463374607431768211456).toString(16)}`

Which correctly returns:

0x100000000000000000000000000000000

However when I try to run the same code for a different number:

`0x${(340282366920938463463374607431768215552).toString(16)}`

This returns the exact same number as above:

0x100000000000000000000000000000000

I would expect the second option to return:

0x100000000000000000000000000000100

Any pointers as to what I might be missing would be truly helpful

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