Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

273
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!