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
Posted on 2002-11-19 04:57:36 by processingspeed
Posted on 2002-11-19 05:51:25 by bazik
Try 64 bits conversions : IIRC there was a routine on madwizard.org
Posted on 2002-11-19 14:27:17 by JCP
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.
Posted on 2002-11-19 15:52:28 by bitRAKE
Thank you very much "bit"

You solved my problem man.........

cya
bye
Posted on 2002-11-19 22:26:33 by processingspeed