What would be the easiest way to take a string such as "2985.24" and strip the decimal from the string so it looks like "298524".
Thanks for the help!
Eroc
Printable View
What would be the easiest way to take a string such as "2985.24" and strip the decimal from the string so it looks like "298524".
Thanks for the help!
Eroc
String.Replace() is the answer. Try:
VB Code:
Dim myDecNum As String = "2985.24" Dim myNewNum As String = myDecNum.Replace(".", "") 'If you want to get the integer then just parse it Dim myIntNum As Integer = Integer.Parse(myNewNum)
Didn't see the replace, how blind can I be?
Thx for the help, that was what I was looking for !!
Eroc