N
N
Nikita Kochetkov2017-03-29 17:04:24
JavaScript
Nikita Kochetkov, 2017-03-29 17:04:24

How to convert a number from a hexadecimal system to a 10th system with a full output of the result?

There is a string "12001ae4824817cc1ad988f5e80000001ae482" which is a hexadecimal number.
If you use toFixed(), then the result will be represented in exponential form.
How to translate it into a 10-decimal number so that the result is not presented in exponential form?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Burov, 2017-03-29
@fiercekilla

www.stackoverflow.com/a/12533838

D
Dmitry Belyaev, 2017-03-29
@bingo347

You have a hexadecimal number with a size of 19 bytes, it will not work to shove it into a container of 8 bytes without loss, despite the fact that only 52 bits (6.5 bytes) can be used as a maximum for integers.
But if the result should be a string, then you can do a "manual" translation, by implementing the algorithm for dividing hexadecimal numbers by a column

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question