does anyone have any way to
convert a 64bit value to ascii??
dwtoa does not do the trick for my
program, I am trying to display
the diskfreespace for large hard drives.
Split the 64 bits into two 32-bit value and display them separately
The DIV instruction should work for you. Put the 64-bit number in EDX:EAX and divide by 1,000,000,000 (the largest power of ten that fits into 32-bits). Call DWTOA with EAX. Call DWTOA with EDX. Put the two strings together - padding the second string to nine digits. Of course this has the limitation of the 64-bit number being between zero and 2^31 * 1,000,000,000 - 1. But is that really a problem. :)
This message was edited by bitRAKE, on 5/20/2001 12:22:50 AM
you could use FloatToStr from the masm32 library, but the result may come out in scientific notation