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.
Posted on 2001-05-19 18:50:00 by Zcoder
Split the 64 bits into two 32-bit value and display them separately
Posted on 2001-05-19 19:01:00 by karim
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
Posted on 2001-05-20 00:19:00 by bitRAKE
you could use FloatToStr from the masm32 library, but the result may come out in scientific notation
Posted on 2001-05-20 14:07:00 by Sloat