How to convert decimal to REAL10 in MASM assembly?

Right now, I am converting a string containing a decimal number into an integer (now ignoring the notation), load it into ST (0) and divide by the correct power 10 to account for the notation. This seems to be around, and requires that I have a lookup table for some degrees 10. Is there a better way to do this?

+3
source share
1 answer

Above my head, I am seduced by the idea of ​​creating a part of the mantissa, counting the number of digits and setting the exponent directly instead of doing the division.

+1
source

Source: https://habr.com/ru/post/1707830/


All Articles