Hi all u guys.........
Again I have got a interesting problem..
.data
string db "-1111222233334444555566667777888899990000", 0
How can I represent this large string into a signed number.
Can anyone help me out ?
cya
bye
Again I have got a interesting problem..
.data
string db "-1111222233334444555566667777888899990000", 0
How can I represent this large string into a signed number.
Can anyone help me out ?
cya
bye
Posted on 2002-11-19 05:51:25 by bazik
Try 64 bits conversions : IIRC there was a routine on madwizard.org
Pseudo-Code:
Number <-- 0
Index <-- Start of string
If String(Index) = "-" Then
Negitive <-- True
Index <-- Index + 1
Else
Negitive <-- False
End If
While Not Index = End of string
Temp <-- String(Index) - "0"
Number <-- Number * 10 + Temp
Index <-- Index + 1
End While
If Negitive Then
Number <-- Number * -1
End If
No error checking is done.Thank you very much "bit"
You solved my problem man.........
cya
bye
You solved my problem man.........
cya
bye